From f0d6dd6006a9d9b943e2a1a25441cce39b50f676 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 1 Dec 2006 19:02:56 +0000 Subject: [PATCH] new 'cast' miscompilation, reduced from perlbmk by Evan git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32079 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll 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 +} -- 2.34.1