When checking for sret-demotion, it needs to use legal types. When using the return...
[oota-llvm.git] / test / CodeGen / X86 / aligned-comm.ll
index ef1e111836dd258d346e2a9e1eeeec2454442657..c0f3a81c4d67e5b76958f8e96c51ae47c0fcace1 100644 (file)
@@ -1,11 +1,8 @@
-; RUN: llvm-as < %s | llc -march=x86
-; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin10 | grep {array,16512,7}
-; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin9 | grep {array,16512,7}
-; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin8 | not grep {7}
-; XFAIL: *
-
-; Currently there is no construct which generates .comm, so test is xfail'ed.
+; RUN: llc < %s -march=x86
+; RUN: llc < %s -mtriple=i386-apple-darwin10 | grep {array,16512,7}
+; RUN: llc < %s -mtriple=i386-apple-darwin9 | grep {array,16512,7}
+; RUN: llc < %s -mtriple=i386-apple-darwin8 | not grep {7}
 
 ; Darwin 9+ should get alignment on common symbols.  Darwin8 does 
 ; not support this.
-@array = weak global [4128 x i32] zeroinitializer, align 128
+@array = common global [4128 x i32] zeroinitializer, align 128