From: Sanjay Patel Date: Mon, 4 Feb 2019 22:37:05 +0000 (+0000) Subject: [CGP] fix bogus test names/comments; NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02e3a277803b54ccccdff3946b787f87b0a27043;p=llvm [CGP] fix bogus test names/comments; NFC Inverted operand 0 and operand 1. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353106 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/CodeGenPrepare/X86/overflow-intrinsics.ll b/test/Transforms/CodeGenPrepare/X86/overflow-intrinsics.ll index 32c979caaee..370d83bba1e 100644 --- a/test/Transforms/CodeGenPrepare/X86/overflow-intrinsics.ll +++ b/test/Transforms/CodeGenPrepare/X86/overflow-intrinsics.ll @@ -1,4 +1,3 @@ -; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; RUN: opt -codegenprepare -S < %s | FileCheck %s ; RUN: opt -enable-debugify -codegenprepare -S < %s 2>&1 | FileCheck %s -check-prefix=DEBUG @@ -204,8 +203,8 @@ define i1 @usubo_ugt_i32(i32 %x, i32 %y, i32* %p) { ; Constant operand should match. -define i1 @usubo_ugt_constant_op1_i8(i8 %x, i8* %p) { -; CHECK-LABEL: @usubo_ugt_constant_op1_i8( +define i1 @usubo_ugt_constant_op0_i8(i8 %x, i8* %p) { +; CHECK-LABEL: @usubo_ugt_constant_op0_i8( ; CHECK-NEXT: [[S:%.*]] = sub i8 42, [[X:%.*]] ; CHECK-NEXT: [[OV:%.*]] = icmp ugt i8 [[X]], 42 ; CHECK-NEXT: store i8 [[S]], i8* [[P:%.*]] @@ -219,8 +218,8 @@ define i1 @usubo_ugt_constant_op1_i8(i8 %x, i8* %p) { ; Compare with constant operand 0 is canonicalized by commuting, but verify match for non-canonical form. -define i1 @usubo_ult_constant_op1_i16(i16 %x, i16* %p) { -; CHECK-LABEL: @usubo_ult_constant_op1_i16( +define i1 @usubo_ult_constant_op0_i16(i16 %x, i16* %p) { +; CHECK-LABEL: @usubo_ult_constant_op0_i16( ; CHECK-NEXT: [[S:%.*]] = sub i16 43, [[X:%.*]] ; CHECK-NEXT: [[OV:%.*]] = icmp ult i16 43, [[X]] ; CHECK-NEXT: store i16 [[S]], i16* [[P:%.*]] @@ -232,10 +231,10 @@ define i1 @usubo_ult_constant_op1_i16(i16 %x, i16* %p) { ret i1 %ov } -; Subtract with constant operand 0 is canonicalized to add. +; Subtract with constant operand 1 is canonicalized to add. -define i1 @usubo_ult_constant_op0_i16(i16 %x, i16* %p) { -; CHECK-LABEL: @usubo_ult_constant_op0_i16( +define i1 @usubo_ult_constant_op1_i16(i16 %x, i16* %p) { +; CHECK-LABEL: @usubo_ult_constant_op1_i16( ; CHECK-NEXT: [[S:%.*]] = add i16 [[X:%.*]], -44 ; CHECK-NEXT: [[OV:%.*]] = icmp ult i16 [[X]], 44 ; CHECK-NEXT: store i16 [[S]], i16* [[P:%.*]] @@ -247,8 +246,8 @@ define i1 @usubo_ult_constant_op0_i16(i16 %x, i16* %p) { ret i1 %ov } -define i1 @usubo_ugt_constant_op0_i8(i8 %x, i8* %p) { -; CHECK-LABEL: @usubo_ugt_constant_op0_i8( +define i1 @usubo_ugt_constant_op1_i8(i8 %x, i8* %p) { +; CHECK-LABEL: @usubo_ugt_constant_op1_i8( ; CHECK-NEXT: [[S:%.*]] = add i8 [[X:%.*]], -45 ; CHECK-NEXT: [[OV:%.*]] = icmp ugt i8 45, [[X]] ; CHECK-NEXT: store i8 [[S]], i8* [[P:%.*]]