blob: 6d2e6b5a948e089ba2d6b907b33609956cc73dd8 (
plain)
1
2
3
4
5
6
7
8
9
|
; RUN: opt %s -instcombine | llvm-dis | grep shl
define i1 @test(i32 %X, i8 %A) {
%shift.upgrd.1 = zext i8 %A to i32 ; <i32> [#uses=1]
%B = lshr i32 %X, %shift.upgrd.1 ; <i32> [#uses=1]
%D = trunc i32 %B to i1 ; <i1> [#uses=1]
ret i1 %D
}
|