diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-25 21:27:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-25 21:27:53 +0000 |
commit | 53f85a7a10124eb5c0569e416b4d73192e846a47 (patch) | |
tree | b92bd5b2e6e48dbc6e0de4476777c8f902daea25 /test/Transforms | |
parent | 85d597c7b5210c6a60f664580143c8b61a590e9d (diff) | |
download | external_llvm-53f85a7a10124eb5c0569e416b4d73192e846a47.zip external_llvm-53f85a7a10124eb5c0569e416b4d73192e846a47.tar.gz external_llvm-53f85a7a10124eb5c0569e416b4d73192e846a47.tar.bz2 |
Implement PR1822
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44318 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/InstCombine/select.ll | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/test/Transforms/InstCombine/select.ll b/test/Transforms/InstCombine/select.ll index ccc63c2..aac7603 100644 --- a/test/Transforms/InstCombine/select.ll +++ b/test/Transforms/InstCombine/select.ll @@ -1,8 +1,7 @@ ; This test makes sure that these instructions are properly eliminated. +; PR1822 -; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \ -; RUN: not grep select -; END. +; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep select implementation @@ -180,3 +179,12 @@ short %test22(int %x) { ret short %retval } +bool %test23(bool %a, bool %b) { + %c = select bool %a, bool %b, bool %a + ret bool %c +} + +bool %test24(bool %a, bool %b) { + %c = select bool %a, bool %a, bool %b + ret bool %c +} |