aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-09-28 22:31:49 +0000
committerChris Lattner <sabre@nondot.org>2004-09-28 22:31:49 +0000
commit0b948848eb31bc26b12df58adb304f61c1ea5bc1 (patch)
tree85d68cac4be9aa6e24aa438fc20626264ee9c26d /test
parent955f331a7732876f6c2d7f5f73a337f6af4149f2 (diff)
downloadexternal_llvm-0b948848eb31bc26b12df58adb304f61c1ea5bc1.zip
external_llvm-0b948848eb31bc26b12df58adb304f61c1ea5bc1.tar.gz
external_llvm-0b948848eb31bc26b12df58adb304f61c1ea5bc1.tar.bz2
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16560 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/or.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/or.ll b/test/Transforms/InstCombine/or.ll
index e4d5bb7..669540b 100644
--- a/test/Transforms/InstCombine/or.ll
+++ b/test/Transforms/InstCombine/or.ll
@@ -113,3 +113,18 @@ int %test17(int %A) {
%D = or int %B, %C ; %D = and int %B, 5
ret int %D
}
+
+bool %test18(int %A) {
+ %B = setge int %A, 100
+ %C = setlt int %A, 50
+ %D = or bool %B, %C ;; (A-50) >u 50
+ ret bool %D
+}
+
+bool %test19(int %A) {
+ %B = seteq int %A, 50
+ %C = seteq int %A, 51
+ %D = or bool %B, %C ;; (A-50) < 2
+ ret bool %D
+}
+