Simon Pilgrim 0c97ac0a46 [InstCombine] Regenerate some old bool math tests to use FileCheck and UTC scripts
Don't use %a and %A in the same test as FileCheck doesn't like it.
2024-06-10 17:59:25 +01:00

14 lines
384 B
LLVM

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
; PR2389
define i1 @test(i1 %a, i1 %b) {
; CHECK-LABEL: define i1 @test(
; CHECK-SAME: i1 [[A:%.*]], i1 [[B:%.*]]) {
; CHECK-NEXT: [[R:%.*]] = xor i1 [[A]], [[B]]
; CHECK-NEXT: ret i1 [[R]]
;
%r = add i1 %a, %b
ret i1 %r
}