From 738e17b5df92a9bf1f43ecf17c0f9333b94dad79 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Mon, 4 Feb 2019 22:37:05 +0000 Subject: [PATCH] [CGP] fix bogus test names/comments; NFC Inverted operand 0 and operand 1. llvm-svn: 353106 --- .../CodeGenPrepare/X86/overflow-intrinsics.ll | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/llvm/test/Transforms/CodeGenPrepare/X86/overflow-intrinsics.ll b/llvm/test/Transforms/CodeGenPrepare/X86/overflow-intrinsics.ll index 32c979c..370d83b 100644 --- a/llvm/test/Transforms/CodeGenPrepare/X86/overflow-intrinsics.ll +++ b/llvm/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:%.*]] -- 2.7.4