diff options
-rw-r--r-- | test/Transforms/InstCombine/or.ll | 15 |
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 +} + |