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