diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-04-08 04:43:04 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-04-08 04:43:04 +0000 |
| commit | ac42fd5912ec4f1f23c8b5a035d79bfaa198ff74 (patch) | |
| tree | d7b2ad22d311e0ae00cf92ff5c88e8c603784819 /llvm/test/Regression/Transforms/InstCombine/select.ll | |
| parent | 8a56f16700ba93e1fd8637fa337f647e8c095f45 (diff) | |
| download | bcm5719-llvm-ac42fd5912ec4f1f23c8b5a035d79bfaa198ff74.tar.gz bcm5719-llvm-ac42fd5912ec4f1f23c8b5a035d79bfaa198ff74.zip | |
Add some more cases we should combine
llvm-svn: 12768
Diffstat (limited to 'llvm/test/Regression/Transforms/InstCombine/select.ll')
| -rw-r--r-- | llvm/test/Regression/Transforms/InstCombine/select.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/select.ll b/llvm/test/Regression/Transforms/InstCombine/select.ll index 6a7ff1a6adb..511302e2a3b 100644 --- a/llvm/test/Regression/Transforms/InstCombine/select.ll +++ b/llvm/test/Regression/Transforms/InstCombine/select.ll @@ -35,3 +35,22 @@ int %test6(bool %C) { ret int %V } +bool %test7(bool %C, bool %X) { + %R = select bool %C, bool true, bool %X ; R = or C, X + ret bool %R +} + +bool %test8(bool %C, bool %X) { + %R = select bool %C, bool %X, bool false ; R = and C, X + ret bool %R +} + +bool %test9(bool %C, bool %X) { + %R = select bool %C, bool false, bool %X ; R = and !C, X + ret bool %R +} + +bool %test10(bool %C, bool %X) { + %R = select bool %C, bool %X, bool true ; R = or !C, X + ret bool %R +} |

