diff --git a/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll b/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll new file mode 100644 index 00000000000..c7b2c6fa6d2 --- /dev/null +++ b/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll @@ -0,0 +1,5 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'ret bool false' +bool %test() { + %X = trunc uint 320 to bool + ret bool %X +}