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 | 7018f5c2d67ebd3b7372b611b038ac60cb755371 (patch) | |
tree | 167425f19fe837197d6b6839906c0585ee155196 /test | |
parent | c326c92ca8b4c2cf350a8b549222021b4555ca69 (diff) | |
download | llvm-7018f5c2d67ebd3b7372b611b038ac60cb755371.tar.gz llvm-7018f5c2d67ebd3b7372b611b038ac60cb755371.tar.bz2 llvm-7018f5c2d67ebd3b7372b611b038ac60cb755371.tar.xz |
Add some more cases we should combine
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/select.ll | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/select.ll b/test/Transforms/InstCombine/select.ll index 6a7ff1a6ad..511302e2a3 100644 --- a/test/Transforms/InstCombine/select.ll +++ b/test/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 +} |