aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-07 23:42:23 +0000
committerChris Lattner <sabre@nondot.org>2010-01-07 23:42:23 +0000
commite3874deb61fb01354ca32996e941060956fc4d41 (patch)
tree425f13a4cbedcd521abbe62b3764b82449f80cec /test
parent075f6929393de708fbebbba053d2562d05ff0ce0 (diff)
downloadexternal_llvm-e3874deb61fb01354ca32996e941060956fc4d41.zip
external_llvm-e3874deb61fb01354ca32996e941060956fc4d41.tar.gz
external_llvm-e3874deb61fb01354ca32996e941060956fc4d41.tar.bz2
filecheckize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/shift-sra.ll8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/Transforms/InstCombine/shift-sra.ll b/test/Transforms/InstCombine/shift-sra.ll
index 4492785..c209328 100644
--- a/test/Transforms/InstCombine/shift-sra.ll
+++ b/test/Transforms/InstCombine/shift-sra.ll
@@ -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 @@ define i32 @test1(i32 %X, i8 %A) {
%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 @@ define i32 @test2(i8 %tmp) {
%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
}