64-bit sign extension in register instructions.
[oota-llvm.git] / test / CodeGen / ARM / hello.ll
index 61354a0425cc010e374ebf7714f338a9fc41f9af..893b4266ac3ce0a74c2bed50879069027435e232 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=armv6-linux-gnueabi | grep mov | count 1
+; RUN: llc < %s -mtriple=armv6-linux-gnu --disable-fp-elim | \
+; RUN:   grep mov | count 2
+; RUN: llc < %s -mtriple=armv6-apple-ios | 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*)