The ARM disassembler did not handle the alignment correctly for VLD*DUP* instructions
[oota-llvm.git] / test / CodeGen / ARM / hello.ll
index 61354a0425cc010e374ebf7714f338a9fc41f9af..bfed7a6630b4bb6f9e1b02874107cca98ceeb96f 100644 (file)
@@ -1,13 +1,14 @@
-; RUN: llvm-as < %s | llc -march=arm &&
-; RUN: llvm-as < %s | llc -march=arm | grep mov | wc -l | grep 1
-%str = internal constant [12 x sbyte] c"Hello World\00"                ; <[12 x sbyte]*> [#uses=1]
+; RUN: llc < %s -march=arm
+; RUN: llc < %s -mtriple=arm-linux-gnueabi | grep mov | count 1
+; RUN: llc < %s -mtriple=arm-linux-gnu --disable-fp-elim | \
+; RUN:   grep mov | count 2
+; RUN: llc < %s -mtriple=arm-apple-darwin | grep mov | count 2
 
-implementation   ; Functions:
+@str = internal constant [12 x i8] c"Hello World\00"
 
-int %main() {
-entry:
-       %tmp = call int %puts( sbyte* getelementptr ([12 x sbyte]* %str, int 0, uint 0) )               ; <int> [#uses=0]
-       ret int 0
+define i32 @main() {
+       %tmp = call i32 @puts( i8* getelementptr ([12 x i8]* @str, i32 0, i64 0) )              ; <i32> [#uses=0]
+       ret i32 0
 }
 
-declare int %puts(sbyte*)
+declare i32 @puts(i8*)