git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299472
91177308-0d34-0410-b5e6-
96231b3b80d8
return Res;
}
- if (I.getType()->isIntegerTy(1))
+ if (I.getType()->getScalarType()->isIntegerTy(1))
return BinaryOperator::CreateXor(Op0, Op1);
// Replace (-1 - A) with (~A).
%res = and i32 %sub, 127
ret i32 %res
}
+
+define <2 x i1> @test53(<2 x i1> %A, <2 x i1> %B) {
+ %sub = sub <2 x i1> %A, %B
+ ret <2 x i1> %sub
+; CHECK-LABEL: @test53(
+; CHECK-NEXT: %sub = xor <2 x i1> %A, %B
+; CHECK-NEXT: ret <2 x i1> %sub
+}
+