Debug Info Testing: use null instead of an empty string in context field.
[oota-llvm.git] / test / CodeGen / ARM / insn-sched1.ll
index 1e4135b3084976403a753ee3b4ca0f98ab3c8160..d188fae70340a5ff06a67ee22444fec6e64c77c3 100644 (file)
@@ -1,11 +1,11 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | grep mov | wc -l | grep 2
+; RUN: llc < %s -march=arm -mattr=+v6
+; RUN: llc < %s -mtriple=arm-apple-ios -mattr=+v6 |\
+; RUN:   grep mov | count 3
 
-int %test(int %x) {
-       %tmp = cast int %x to short
-       %tmp2 = tail call int %f( int 1, short %tmp )
-       ret int %tmp2
+define i32 @test(i32 %x) {
+        %tmp = trunc i32 %x to i16              ; <i16> [#uses=1]
+        %tmp2 = call i32 @f( i32 1, i16 %tmp )             ; <i32> [#uses=1]
+        ret i32 %tmp2
 }
 
-declare int %f(int, short)
+declare i32 @f(i32, i16)