From: Chris Lattner Date: Mon, 16 Feb 2004 01:19:52 +0000 (+0000) Subject: Test for xor chains X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a783c02749eb8aa1bc79248a622fd34faebe1b71;p=oota-llvm.git Test for xor chains git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11489 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/InstCombine/xor.ll b/test/Transforms/InstCombine/xor.ll index 172da6062fd..29f0f10fddf 100644 --- a/test/Transforms/InstCombine/xor.ll +++ b/test/Transforms/InstCombine/xor.ll @@ -122,3 +122,9 @@ uint %test18(uint %A) { ; C - ~X == X + (1+C) %C = sub uint 123, %B ret uint %C } + +uint %test19(uint %A, uint %B) { + %C = xor uint %A, %B + %D = xor uint %C, %A ; A terms cancel, D = B + ret uint %D +}