2012-06-22 23:04:02 +00:00
|
|
|
; RUN: llc < %s -march=x86 -mtriple=i686-apple-darwin | FileCheck %s
|
2010-05-28 01:14:11 +00: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-22 23:04:02 +00:00
|
|
|
; CHECK: foo
|
|
|
|
; CHECK-NOT: andl $-32, %eax
|
2010-05-28 01:14:11 +00: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-22 23:04:02 +00:00
|
|
|
; CHECK: foo2
|
2012-07-10 17:45:53 +00:00
|
|
|
; CHECK: andl $-32, %esp
|
2013-07-25 18:35:14 +00:00
|
|
|
; CHECK: andl $-32, %e{{..}}
|
2010-05-28 01:14:11 +00:00
|
|
|
}
|