[llvm-branch-commits] [llvm-branch] r89003 - /llvm/branches/Apple/Leela/test/CodeGen/Thumb2/thumb2-sxt_rot.ll

Jim Grosbach grosbach at apple.com
Mon Nov 16 16:04:19 PST 2009


Author: grosbach
Date: Mon Nov 16 18:04:19 2009
New Revision: 89003

URL: http://llvm.org/viewvc/llvm-project?rev=89003&view=rev
Log:
merge 89002

Modified:
    llvm/branches/Apple/Leela/test/CodeGen/Thumb2/thumb2-sxt_rot.ll

Modified: llvm/branches/Apple/Leela/test/CodeGen/Thumb2/thumb2-sxt_rot.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Leela/test/CodeGen/Thumb2/thumb2-sxt_rot.ll?rev=89003&r1=89002&r2=89003&view=diff

==============================================================================
--- llvm/branches/Apple/Leela/test/CodeGen/Thumb2/thumb2-sxt_rot.ll (original)
+++ llvm/branches/Apple/Leela/test/CodeGen/Thumb2/thumb2-sxt_rot.ll Mon Nov 16 18:04:19 2009
@@ -1,16 +1,15 @@
-; RUN: llc < %s -march=thumb -mattr=+thumb2 | \
-; RUN:   grep sxtb | count 2
-; RUN: llc < %s -march=thumb -mattr=+thumb2 | \
-; RUN:   grep sxtb | grep ror | count 1
-; RUN: llc < %s -march=thumb -mattr=+thumb2 | \
-; RUN:   grep sxtab | count 1
+; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck %s
 
 define i32 @test0(i8 %A) {
+; CHECK: test0
+; CHECK: sxtb r0, r0
         %B = sext i8 %A to i32
 	ret i32 %B
 }
 
 define i8 @test1(i32 %A) signext {
+; CHECK: test1
+; CHECK: sxtb.w r0, r0, ror #8
 	%B = lshr i32 %A, 8
 	%C = shl i32 %A, 24
 	%D = or i32 %B, %C
@@ -19,6 +18,9 @@
 }
 
 define i32 @test2(i32 %A, i32 %X) signext {
+; CHECK: test2
+; CHECK: lsrs r0, r0, #8
+; CHECK: sxtab  r0, r1, r0
 	%B = lshr i32 %A, 8
 	%C = shl i32 %A, 24
 	%D = or i32 %B, %C





More information about the llvm-branch-commits mailing list