llvm-project/llvm/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll

7 lines
159 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
; RUN: grep {ret i1 false}
bool %test() {
%X = trunc uint 320 to bool
ret bool %X
}