2012-06-23 01:04:02 +02:00
|
|
|
; RUN: llc < %s -march=x86 -mtriple=i686-apple-darwin | FileCheck %s
|
2010-05-28 03:14:11 +02:00
|
|
|
|
|
|
|
declare void @bar(<2 x i64>* %n)
|
|
|
|
|
|
|
|
define void @foo(i32 %h) {
|
|
|
|
%p = alloca <2 x i64>, i32 %h
|
|
|
|
call void @bar(<2 x i64>* %p)
|
|
|
|
ret void
|
2012-06-23 01:04:02 +02:00
|
|
|
; CHECK: foo
|
|
|
|
; CHECK-NOT: andl $-32, %eax
|
2010-05-28 03:14:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
define void @foo2(i32 %h) {
|
|
|
|
%p = alloca <2 x i64>, i32 %h, align 32
|
|
|
|
call void @bar(<2 x i64>* %p)
|
|
|
|
ret void
|
2012-06-23 01:04:02 +02:00
|
|
|
; CHECK: foo2
|
2012-07-10 19:45:53 +02:00
|
|
|
; CHECK: andl $-32, %esp
|
2012-06-23 01:04:02 +02:00
|
|
|
; CHECK: andl $-32, %eax
|
2010-05-28 03:14:11 +02:00
|
|
|
}
|