Two sets of changes. Sorry they are intermingled.
[oota-llvm.git] / test / CodeGen / ARM / sxt_rot.ll
index fde671f034fa8915200913ca8f6bb9a6b2cfa5ee..4752f17f1e1c38ad46eb05eae4bb95cde7a19d7f 100644 (file)
@@ -1,7 +1,14 @@
-; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | \
-; RUN:   grep sxtb  | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | \
-; RUN:   grep sxtab | wc -l | grep 1
+; RUN: llc < %s -march=arm -mattr=+v6 | \
+; RUN:   grep sxtb | count 2
+; RUN: llc < %s -march=arm -mattr=+v6 | \
+; RUN:   grep sxtb | grep ror | count 1
+; RUN: llc < %s -march=arm -mattr=+v6 | \
+; RUN:   grep sxtab | count 1
+
+define i32 @test0(i8 %A) {
+        %B = sext i8 %A to i32
+       ret i32 %B
+}
 
 define i8 @test1(i32 %A) signext {
        %B = lshr i32 %A, 8