diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-09 19:52:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-09 19:52:36 +0000 |
commit | 0097e41993552deb2568611179527387312ba72a (patch) | |
tree | 6f9b2335f9d35ec026da186212b58a6f5fc15650 /test/Transforms | |
parent | 8c8a37061a738cc435b27e74f2320dae03c06318 (diff) | |
download | external_llvm-0097e41993552deb2568611179527387312ba72a.zip external_llvm-0097e41993552deb2568611179527387312ba72a.tar.gz external_llvm-0097e41993552deb2568611179527387312ba72a.tar.bz2 |
New testcase for wierd combine opportunity found in bzip2 benchmark
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2580 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/InstCombine/set.ll | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/Transforms/InstCombine/set.ll b/test/Transforms/InstCombine/set.ll index 264bb35..3fd94c3 100644 --- a/test/Transforms/InstCombine/set.ll +++ b/test/Transforms/InstCombine/set.ll @@ -6,16 +6,20 @@ ; RUN: else exit 0 ; RUN: fi -implementation +%X = uninitialized global int bool "test1"(int %A) { %B = seteq int %A, %A - ret bool %B + %C = seteq int* %X, null ; Never true + %D = and bool %B, %C + ret bool %D } bool "test2"(int %A) { %B = setne int %A, %A - ret bool %B + %C = setne int* %X, null ; Never false + %D = or bool %B, %C + ret bool %D } bool "test3"(int %A) { |