llvm-6502/test/Transforms/InstCombine/shl-trunc.ll

8 lines
163 B
LLVM
Raw Normal View History

; 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
}