~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/Thumb2/2010-04-15-DynAllocBug.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s -mtriple=thumbv7-apple-darwin -mcpu=cortex-a8 -arm-atomic-cfg-tidy=0 -O3 | FileCheck %s
 
2
; rdar://7493908
 
3
 
 
4
; Make sure the result of the first dynamic_alloc isn't copied back to sp more
 
5
; than once. We'll deal with poor codegen later.
 
6
 
 
7
define void @t() nounwind ssp {
 
8
entry:
 
9
; CHECK-LABEL: t:
 
10
  %size = mul i32 8, 2
 
11
; CHECK:  sub.w  r0, sp, #16
 
12
; CHECK:  mov sp, r0
 
13
  %vla_a = alloca i8, i32 %size, align 8
 
14
; CHECK:  sub.w  r0, sp, #16
 
15
; CHECK:  mov sp, r0
 
16
  %vla_b = alloca i8, i32 %size, align 8
 
17
  unreachable
 
18
}