Add testcase for r63142.
[oota-llvm.git] / test / CodeGen / X86 / alloca-align-rounding.ll
index 899dbffd4f67cc64b782fc9a0aea70196882c683..77a8ccc03d26f5ece7234ce2a2a0a1c819d0a34c 100644 (file)
@@ -1,4 +1,6 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | not grep and
+; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-apple-darwin | grep and | count 1
+; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=i686-pc-linux | grep and | count 1
+; XFAIL: *
 
 declare void @bar(<2 x i64>* %n)
 
@@ -7,3 +9,9 @@ define void @foo(i32 %h) {
   call void @bar(<2 x i64>* %p)
   ret void
 }
+
+define void @foo2(i32 %h) {
+  %p = alloca <2 x i64>, i32 %h, align 32
+  call void @bar(<2 x i64>* %p)
+  ret void
+}