[llvm-branch-commits] [llvm-branch] r114298 - /llvm/branches/ggreif/arm-peephole/test/CodeGen/ARM/arm-and-tst-peephole.ll
Gabor Greif
ggreif at gmail.com
Sat Sep 18 13:08:29 PDT 2010
Author: ggreif
Date: Sat Sep 18 15:08:29 2010
New Revision: 114298
URL: http://llvm.org/viewvc/llvm-project?rev=114298&view=rev
Log:
use -march and document that T2 doe not optimize yet
Modified:
llvm/branches/ggreif/arm-peephole/test/CodeGen/ARM/arm-and-tst-peephole.ll
Modified: llvm/branches/ggreif/arm-peephole/test/CodeGen/ARM/arm-and-tst-peephole.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/arm-peephole/test/CodeGen/ARM/arm-and-tst-peephole.ll?rev=114298&r1=114297&r2=114298&view=diff
==============================================================================
--- llvm/branches/ggreif/arm-peephole/test/CodeGen/ARM/arm-and-tst-peephole.ll (original)
+++ llvm/branches/ggreif/arm-peephole/test/CodeGen/ARM/arm-and-tst-peephole.ll Sat Sep 18 15:08:29 2010
@@ -1,5 +1,6 @@
-; RUN: llc < %s -mtriple=arm-apple-darwin | FileCheck %s
-; RUN: llc < %s -mtriple=thumbv6-apple-darwin | FileCheck -check-prefix=T2 %s
+; RUN: llc < %s -march=arm | FileCheck %s
+; RUN: llc < %s -march=thumb | FileCheck -check-prefix=THUMB %s
+; RUN: llc < %s -march=thumb -mattr=+thumb2 | FileCheck -check-prefix=T2 %s
%struct.Foo = type { i8* }
@@ -18,13 +19,17 @@
%0 = ptrtoint i8* %tmp2 to i32
; CHECK: ands r12, r12, #3
-; CHECK-NEXT: beq LBB0_4
+; CHECK-NEXT: beq .LBB0_4
-; T2: movs r5, #3
-; T2-NEXT: mov r6, r4
-; T2-NEXT: ands r6, r5
-; T2-NEXT: tst r4, r5
-; T2-NEXT: beq LBB0_5
+; THUMB: movs r5, #3
+; THUMB-NEXT: mov r6, r4
+; THUMB-NEXT: ands r6, r5
+; THUMB-NEXT: tst r4, r5
+; THUMB-NEXT: beq .LBB0_5
+
+; T2: and lr, r12, #3
+; T2-NEXT: tst.w r12, #3
+; T2-NEXT: beq .LBB0_5
%and = and i32 %0, 3
%tst = icmp eq i32 %and, 0
More information about the llvm-branch-commits
mailing list