aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/ConstProp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-09-20 06:24:51 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-09-20 06:24:51 +0000
commit3105ebfaf7105ffe20530a70194fa8d85d07fb7c (patch)
treea55669da79302b25c8f4dc435b28803f4a0c2a77 /test/Transforms/ConstProp
parent1908aea3a64fa89a907317849cbff73789cdb89a (diff)
downloadexternal_llvm-3105ebfaf7105ffe20530a70194fa8d85d07fb7c.zip
external_llvm-3105ebfaf7105ffe20530a70194fa8d85d07fb7c.tar.gz
external_llvm-3105ebfaf7105ffe20530a70194fa8d85d07fb7c.tar.bz2
Teach the constant folder how to not a cmpinst.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ConstProp')
-rw-r--r--test/Transforms/ConstProp/2009-09-19-ConstFold-i1-ConstExpr.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Transforms/ConstProp/2009-09-19-ConstFold-i1-ConstExpr.ll b/test/Transforms/ConstProp/2009-09-19-ConstFold-i1-ConstExpr.ll
index 0a40c0c..66a3a85 100644
--- a/test/Transforms/ConstProp/2009-09-19-ConstFold-i1-ConstExpr.ll
+++ b/test/Transforms/ConstProp/2009-09-19-ConstFold-i1-ConstExpr.ll
@@ -28,3 +28,9 @@ global i1 icmp ule (i32* bitcast (i8* @X to i32*), i32* bitcast (i8* @Y to i32*)
; CHECK-NOT: bitcast
; CHECK: icmp
+global i1 icmp eq (i1 icmp ult (i8* @X, i8* @Y), i1 false)
+; CHECK-NOT: false
+; CHECK: icmp
+global i1 icmp eq (i1 icmp ult (i8* @X, i8* @Y), i1 true)
+; CHECK-NOT: true
+; CHECK: icmp