[llvm] 11c4bb0 - Regenerate apint-shift tests and replace %tmp variable names to silence update_test_checks warnings
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 2 03:57:08 PDT 2020
Author: Simon Pilgrim
Date: 2020-07-02T11:56:51+01:00
New Revision: 11c4bb0c7cbd91c1e58395363d4dec2b2a803450
URL: https://github.com/llvm/llvm-project/commit/11c4bb0c7cbd91c1e58395363d4dec2b2a803450
DIFF: https://github.com/llvm/llvm-project/commit/11c4bb0c7cbd91c1e58395363d4dec2b2a803450.diff
LOG: Regenerate apint-shift tests and replace %tmp variable names to silence update_test_checks warnings
Added:
Modified:
llvm/test/Transforms/InstCombine/apint-shift.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstCombine/apint-shift.ll b/llvm/test/Transforms/InstCombine/apint-shift.ll
index 8f7e36ca6330..0f05f76d1a68 100644
--- a/llvm/test/Transforms/InstCombine/apint-shift.ll
+++ b/llvm/test/Transforms/InstCombine/apint-shift.ll
@@ -307,8 +307,8 @@ define i53 @test15a(i1 %X) {
define i1 @test16(i84 %X) {
; CHECK-LABEL: @test16(
-; CHECK-NEXT: [[AND:%.*]] = and i84 [[X:%.*]], 16
-; CHECK-NEXT: [[CMP:%.*]] = icmp ne i84 [[AND]], 0
+; CHECK-NEXT: [[TMP1:%.*]] = and i84 [[X:%.*]], 16
+; CHECK-NEXT: [[CMP:%.*]] = icmp ne i84 [[TMP1]], 0
; CHECK-NEXT: ret i1 [[CMP]]
;
%shr = ashr i84 %X, 4
@@ -502,18 +502,18 @@ define <2 x i43> @lshr_shl_eq_amt_multi_use_splat_vec(<2 x i43> %A) {
ret <2 x i43> %D
}
-define i37 @test25(i37 %tmp.2, i37 %AA) {
+define i37 @test25(i37 %AA, i37 %BB) {
; CHECK-LABEL: @test25(
-; CHECK-NEXT: [[TMP_3:%.*]] = and i37 [[TMP_2:%.*]], -131072
-; CHECK-NEXT: [[X2:%.*]] = add i37 [[TMP_3]], [[AA:%.*]]
-; CHECK-NEXT: [[TMP_6:%.*]] = and i37 [[X2]], -131072
-; CHECK-NEXT: ret i37 [[TMP_6]]
+; CHECK-NEXT: [[D:%.*]] = and i37 [[AA:%.*]], -131072
+; CHECK-NEXT: [[C2:%.*]] = add i37 [[D]], [[BB:%.*]]
+; CHECK-NEXT: [[F:%.*]] = and i37 [[C2]], -131072
+; CHECK-NEXT: ret i37 [[F]]
;
- %x = lshr i37 %AA, 17
- %tmp.3 = lshr i37 %tmp.2, 17
- %tmp.5 = add i37 %tmp.3, %x
- %tmp.6 = shl i37 %tmp.5, 17
- ret i37 %tmp.6
+ %C = lshr i37 %BB, 17
+ %D = lshr i37 %AA, 17
+ %E = add i37 %D, %C
+ %F = shl i37 %E, 17
+ ret i37 %F
}
define i40 @test26(i40 %A) {
@@ -534,10 +534,10 @@ define i177 @ossfuzz_9880(i177 %X) {
; CHECK-NEXT: [[A:%.*]] = alloca i177, align 8
; CHECK-NEXT: [[L1:%.*]] = load i177, i177* [[A]], align 8
; CHECK-NEXT: [[TMP1:%.*]] = icmp eq i177 [[L1]], -1
-; CHECK-NEXT: [[TMP2:%.*]] = sext i1 [[TMP1]] to i177
-; CHECK-NEXT: [[B14:%.*]] = add i177 [[L1]], [[TMP2]]
-; CHECK-NEXT: [[TMP3:%.*]] = icmp eq i177 [[B14]], -1
-; CHECK-NEXT: [[B1:%.*]] = zext i1 [[TMP3]] to i177
+; CHECK-NEXT: [[B5_NEG:%.*]] = sext i1 [[TMP1]] to i177
+; CHECK-NEXT: [[B14:%.*]] = add i177 [[L1]], [[B5_NEG]]
+; CHECK-NEXT: [[TMP2:%.*]] = icmp eq i177 [[B14]], -1
+; CHECK-NEXT: [[B1:%.*]] = zext i1 [[TMP2]] to i177
; CHECK-NEXT: ret i177 [[B1]]
;
%A = alloca i177
More information about the llvm-commits
mailing list