[llvm-commits] [llvm] r92963 - /llvm/trunk/test/Transforms/InstCombine/shift-sra.ll
Chris Lattner
sabre at nondot.org
Thu Jan 7 15:42:24 PST 2010
Author: lattner
Date: Thu Jan 7 17:42:23 2010
New Revision: 92963
URL: http://llvm.org/viewvc/llvm-project?rev=92963&view=rev
Log:
filecheckize
Modified:
llvm/trunk/test/Transforms/InstCombine/shift-sra.ll
Modified: llvm/trunk/test/Transforms/InstCombine/shift-sra.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/shift-sra.ll?rev=92963&r1=92962&r2=92963&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/shift-sra.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/shift-sra.ll Thu Jan 7 17:42:23 2010
@@ -1,6 +1,4 @@
-; RUN: opt < %s -instcombine -S | \
-; RUN: grep {lshr i32} | count 2
-; RUN: opt < %s -instcombine -S | not grep ashr
+; RUN: opt < %s -instcombine -S | FileCheck %s
define i32 @test1(i32 %X, i8 %A) {
@@ -9,6 +7,8 @@
%Y = ashr i32 %X, %shift.upgrd.1 ; <i32> [#uses=1]
%Z = and i32 %Y, 1 ; <i32> [#uses=1]
ret i32 %Z
+; CHECK: @test1
+; CHECK: lshr i32 %X, %shift.upgrd.1
}
define i32 @test2(i8 %tmp) {
@@ -16,4 +16,6 @@
%tmp4 = add i32 %tmp3, 7 ; <i32> [#uses=1]
%tmp5 = ashr i32 %tmp4, 3 ; <i32> [#uses=1]
ret i32 %tmp5
+; CHECK: @test2
+; CHECK: lshr i32 %tmp4, 3
}
More information about the llvm-commits
mailing list