aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/shl-trunc.ll
blob: fae0ce3d42cab2e8909aabd4b630a0e801530af0 (plain)
1
2
3
4
5
6
7
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep shl

bool %test(int %X, ubyte %A) {
	%B = lshr int %X, ubyte %A
	%D = trunc int %B to bool
	ret bool %D
}