[llvm] de12ca3 - [InstCombine] fix typo in test; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 9 09:46:09 PST 2021


Author: Sanjay Patel
Date: 2021-11-09T12:46:03-05:00
New Revision: de12ca31d477d4a5f6c5d84504eb99f54e7dc2dc

URL: https://github.com/llvm/llvm-project/commit/de12ca31d477d4a5f6c5d84504eb99f54e7dc2dc
DIFF: https://github.com/llvm/llvm-project/commit/de12ca31d477d4a5f6c5d84504eb99f54e7dc2dc.diff

LOG: [InstCombine] fix typo in test; NFC

This was intended to commute the previous test, but failed to swap the values.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/InstCombine/sub-minmax.ll b/llvm/test/Transforms/InstCombine/sub-minmax.ll
index 5fc5738a43e6..6b58b167302c 100644
--- a/llvm/test/Transforms/InstCombine/sub-minmax.ll
+++ b/llvm/test/Transforms/InstCombine/sub-minmax.ll
@@ -545,11 +545,11 @@ define i8 @umax_sub_op1(i8 %x, i8 %y) {
 
 define <2 x i8> @umax_sub_op1_vec_commute(<2 x i8> %x, <2 x i8> %y) {
 ; CHECK-LABEL: @umax_sub_op1_vec_commute(
-; CHECK-NEXT:    [[U:%.*]] = call <2 x i8> @llvm.umax.v2i8(<2 x i8> [[X:%.*]], <2 x i8> [[Y:%.*]])
+; CHECK-NEXT:    [[U:%.*]] = call <2 x i8> @llvm.umax.v2i8(<2 x i8> [[Y:%.*]], <2 x i8> [[X:%.*]])
 ; CHECK-NEXT:    [[R:%.*]] = sub <2 x i8> [[Y]], [[U]]
 ; CHECK-NEXT:    ret <2 x i8> [[R]]
 ;
-  %u = call <2 x i8> @llvm.umax.v2i8(<2 x i8> %x, <2 x i8> %y)
+  %u = call <2 x i8> @llvm.umax.v2i8(<2 x i8> %y, <2 x i8> %x)
   %r = sub <2 x i8> %y, %u
   ret <2 x i8> %r
 }


        


More information about the llvm-commits mailing list