From 2fac727fb07f33157131e1be52fd61665daa7e99 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 28 Jan 2005 19:08:32 +0000 Subject: [PATCH] New testcase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19873 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll diff --git a/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll b/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll new file mode 100644 index 00000000000..b4984a81727 --- /dev/null +++ b/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | opt -constprop | llvm-dis | not grep 'ret bool false' + +%b = external global [2 x { }] + +implementation + +bool %f() { + ; tmp.2 -> true, not false. + %tmp.2 = seteq { }* getelementptr ([2 x { }]* %b, int 0, int 0), + getelementptr ([2 x { }]* %b, int 0, int 1) + ret bool %tmp.2 +}