summaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/2007-03-25-DoubleShift.ll
blob: d67e1a13cc4e8ae1be7db4b3f40633021dea7e8e (plain)
1
2
3
4
5
6
7
8
9
; PR1271
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep and
define i1 @test(i32 %tmp13) {
entry:
	%tmp14 = shl i32 %tmp13, 12		; <i32> [#uses=1]
	%tmp15 = lshr i32 %tmp14, 12		; <i32> [#uses=1]
	%res = icmp ne i32 %tmp15, 0		; <i1>:3 [#uses=1]
        ret i1 %res
}
OpenPOWER on IntegriCloud