summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2008-05-31-AddBool.ll
blob: 31b17196d8f5a41557ab91b1543ff9371bc82827 (plain)
1
2
3
4
5
6
7
8
9
; RUN: opt < %s -instcombine -S | FileCheck %s
; PR2389

; CHECK: xor

define i1 @test(i1 %a, i1 %b) {
  %A = add i1 %a, %b
  ret i1 %A
}