[llvm] r353106 - [CGP] fix bogus test names/comments; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 4 14:37:05 PST 2019


Author: spatel
Date: Mon Feb  4 14:37:05 2019
New Revision: 353106

URL: http://llvm.org/viewvc/llvm-project?rev=353106&view=rev
Log:
[CGP] fix bogus test names/comments; NFC

Inverted operand 0 and operand 1.

Modified:
    llvm/trunk/test/Transforms/CodeGenPrepare/X86/overflow-intrinsics.ll

Modified: llvm/trunk/test/Transforms/CodeGenPrepare/X86/overflow-intrinsics.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/CodeGenPrepare/X86/overflow-intrinsics.ll?rev=353106&r1=353105&r2=353106&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/CodeGenPrepare/X86/overflow-intrinsics.ll (original)
+++ llvm/trunk/test/Transforms/CodeGenPrepare/X86/overflow-intrinsics.ll Mon Feb  4 14:37:05 2019
@@ -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,
 
 ; 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
 
 ; 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(i1
   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(i1
   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:%.*]]




More information about the llvm-commits mailing list