InstCombine: Don't assume that m_ZExt matches an Instruction
[oota-llvm.git] / test / Transforms / InstCombine / 2008-05-31-AddBool.ll
1 ; RUN: opt < %s -instcombine -S | FileCheck %s
2 ; PR2389
3
4 ; CHECK: xor
5
6 define i1 @test(i1 %a, i1 %b) {
7   %A = add i1 %a, %b
8   ret i1 %A
9 }