diff --git a/test/Transforms/InstCombine/xor.ll b/test/Transforms/InstCombine/xor.ll index 0cbd1320d36..6516a9f0a28 100644 --- a/test/Transforms/InstCombine/xor.ll +++ b/test/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 +}