1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 20:43:44 +02:00
llvm-mirror/test/Transforms/InstCombine/2008-05-31-AddBool.ll
Nick Lewycky cdcdcddc85 Adding i1 is always Xor.
llvm-svn: 51816
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
}