diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/Regression/Transforms/InstCombine/xor.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/xor.ll b/llvm/test/Regression/Transforms/InstCombine/xor.ll index 0cbd1320d36..6516a9f0a28 100644 --- a/llvm/test/Regression/Transforms/InstCombine/xor.ll +++ b/llvm/test/Regression/Transforms/InstCombine/xor.ll @@ -110,3 +110,9 @@ uint %test16(uint %A) { ; ~(X+c) == (-c-1)-X %C = xor uint %B, 4294967295 ret uint %C } + +uint %test17(uint %A) { ; ~(c-X) == X-(c-1) == X+(-c+1) + %B = sub uint 123, %A + %C = xor uint %B, 4294967295 + ret uint %C +} |

