llvm-6502/test/Transforms/InstCombine/2008-05-31-AddBool.ll
Nick Lewycky fd12a0b20b Adding i1 is always Xor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51816 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-31 17:10:28 +00:00

8 lines
140 B
LLVM

; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {xor}
; PR2389
define i1 @test(i1 %a, i1 %b) {
%A = add i1 %a, %b
ret i1 %A
}