mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
filecheckize
llvm-svn: 92963
This commit is contained in:
parent
db8fa82914
commit
b8ec2bccaf
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user