From: Chris Lattner Date: Fri, 1 Dec 2006 19:02:56 +0000 (+0000) Subject: new 'cast' miscompilation, reduced from perlbmk by Evan X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f0d6dd6006a9d9b943e2a1a25441cce39b50f676;p=oota-llvm.git 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 --- 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 +}