diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-09-20 06:24:51 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-09-20 06:24:51 +0000 |
commit | 3105ebfaf7105ffe20530a70194fa8d85d07fb7c (patch) | |
tree | a55669da79302b25c8f4dc435b28803f4a0c2a77 /test/Transforms/ConstProp | |
parent | 1908aea3a64fa89a907317849cbff73789cdb89a (diff) |
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.ll | 6 |
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 0a40c0ce2c..66a3a85b3c 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 |