xref: /llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/2006-12-01-TruncBoolBug.ll (revision 5b4b842ffb0952ce4a8949962a9857b6520fca39)
1; RUN: opt < %s -passes=instcombine -S | \
2; RUN:   grep "ret i1 false"
3define i1 @test() {
4        %X = trunc i32 320 to i1                ; <i1> [#uses=1]
5        ret i1 %X
6}
7
8