Skip to content

Commit de12ca3

Browse files
committed
[InstCombine] fix typo in test; NFC
This was intended to commute the previous test, but failed to swap the values.
1 parent c9881c7 commit de12ca3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/Transforms/InstCombine/sub-minmax.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,11 +545,11 @@ define i8 @umax_sub_op1(i8 %x, i8 %y) {
545545

546546
define <2 x i8> @umax_sub_op1_vec_commute(<2 x i8> %x, <2 x i8> %y) {
547547
; CHECK-LABEL: @umax_sub_op1_vec_commute(
548-
; CHECK-NEXT: [[U:%.*]] = call <2 x i8> @llvm.umax.v2i8(<2 x i8> [[X:%.*]], <2 x i8> [[Y:%.*]])
548+
; CHECK-NEXT: [[U:%.*]] = call <2 x i8> @llvm.umax.v2i8(<2 x i8> [[Y:%.*]], <2 x i8> [[X:%.*]])
549549
; CHECK-NEXT: [[R:%.*]] = sub <2 x i8> [[Y]], [[U]]
550550
; CHECK-NEXT: ret <2 x i8> [[R]]
551551
;
552-
%u = call <2 x i8> @llvm.umax.v2i8(<2 x i8> %x, <2 x i8> %y)
552+
%u = call <2 x i8> @llvm.umax.v2i8(<2 x i8> %y, <2 x i8> %x)
553553
%r = sub <2 x i8> %y, %u
554554
ret <2 x i8> %r
555555
}

0 commit comments

Comments
 (0)