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

8 lines
178 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as | 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
}