From af960b55002ec50543cf7241621e0dea5129f37f Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 28 Sep 2020 21:31:55 +0100 Subject: [PATCH] [InstCombine] Regenerate cast tests. NFC. --- test/Transforms/InstCombine/cast.ll | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll index 18b41110312..dcd3013621f 100644 --- a/test/Transforms/InstCombine/cast.ll +++ b/test/Transforms/InstCombine/cast.ll @@ -995,7 +995,7 @@ define %s @test68(%s *%p, i64 %i) { ; ALL-LABEL: @test68( ; ALL-NEXT: [[PP1:%.*]] = getelementptr [[S:%.*]], %s* [[P:%.*]], i64 [[I:%.*]] ; ALL-NEXT: [[L:%.*]] = load [[S]], %s* [[PP1]], align 4 -; ALL-NEXT: ret [[S]] %l +; ALL-NEXT: ret [[S]] [[L]] ; %o = mul i64 %i, 12 %q = bitcast %s* %p to i8* @@ -1010,7 +1010,7 @@ define %s @test68_addrspacecast(%s* %p, i64 %i) { ; ALL-LABEL: @test68_addrspacecast( ; ALL-NEXT: [[PP1:%.*]] = getelementptr [[S:%.*]], %s* [[P:%.*]], i64 [[I:%.*]] ; ALL-NEXT: [[L:%.*]] = load [[S]], %s* [[PP1]], align 4 -; ALL-NEXT: ret [[S]] %l +; ALL-NEXT: ret [[S]] [[L]] ; %o = mul i64 %i, 12 %q = addrspacecast %s* %p to i8 addrspace(2)* @@ -1025,7 +1025,7 @@ define %s @test68_addrspacecast_2(%s* %p, i64 %i) { ; ALL-NEXT: [[PP1:%.*]] = getelementptr [[S:%.*]], %s* [[P:%.*]], i64 [[I:%.*]] ; ALL-NEXT: [[R:%.*]] = addrspacecast %s* [[PP1]] to [[S]] addrspace(1)* ; ALL-NEXT: [[L:%.*]] = load [[S]], [[S]] addrspace(1)* [[R]], align 4 -; ALL-NEXT: ret [[S]] %l +; ALL-NEXT: ret [[S]] [[L]] ; %o = mul i64 %i, 12 %q = addrspacecast %s* %p to i8 addrspace(2)* @@ -1039,7 +1039,7 @@ define %s @test68_as1(%s addrspace(1)* %p, i32 %i) { ; ALL-LABEL: @test68_as1( ; ALL-NEXT: [[PP1:%.*]] = getelementptr [[S:%.*]], [[S]] addrspace(1)* [[P:%.*]], i32 [[I:%.*]] ; ALL-NEXT: [[L:%.*]] = load [[S]], [[S]] addrspace(1)* [[PP1]], align 4 -; ALL-NEXT: ret [[S]] %l +; ALL-NEXT: ret [[S]] [[L]] ; %o = mul i32 %i, 12 %q = bitcast %s addrspace(1)* %p to i8 addrspace(1)* @@ -1068,7 +1068,7 @@ define %s @test70(%s *%p, i64 %i) { ; ALL-NEXT: [[O:%.*]] = mul nsw i64 [[I:%.*]], 3 ; ALL-NEXT: [[PP1:%.*]] = getelementptr inbounds [[S:%.*]], %s* [[P:%.*]], i64 [[O]] ; ALL-NEXT: [[L:%.*]] = load [[S]], %s* [[PP1]], align 4 -; ALL-NEXT: ret [[S]] %l +; ALL-NEXT: ret [[S]] [[L]] ; %o = mul nsw i64 %i, 36 %q = bitcast %s* %p to i8* @@ -1160,7 +1160,7 @@ define %s @test76(%s *%p, i64 %i, i64 %j) { ; ALL-NEXT: [[O2:%.*]] = mul i64 [[I:%.*]], [[J:%.*]] ; ALL-NEXT: [[PP1:%.*]] = getelementptr [[S:%.*]], %s* [[P:%.*]], i64 [[O2]] ; ALL-NEXT: [[L:%.*]] = load [[S]], %s* [[PP1]], align 4 -; ALL-NEXT: ret [[S]] %l +; ALL-NEXT: ret [[S]] [[L]] ; %o = mul i64 %i, 12 %o2 = mul nsw i64 %o, %j @@ -1177,7 +1177,7 @@ define %s @test77(%s *%p, i64 %i, i64 %j) { ; ALL-NEXT: [[O2:%.*]] = mul nsw i64 [[O]], [[J:%.*]] ; ALL-NEXT: [[PP1:%.*]] = getelementptr inbounds [[S:%.*]], %s* [[P:%.*]], i64 [[O2]] ; ALL-NEXT: [[L:%.*]] = load [[S]], %s* [[PP1]], align 4 -; ALL-NEXT: ret [[S]] %l +; ALL-NEXT: ret [[S]] [[L]] ; %o = mul nsw i64 %i, 36 %o2 = mul nsw i64 %o, %j @@ -1200,7 +1200,7 @@ define %s @test78(%s *%p, i64 %i, i64 %j, i32 %k, i32 %l, i128 %m, i128 %n) { ; ALL-NEXT: [[H:%.*]] = mul i64 [[G]], [[J:%.*]] ; ALL-NEXT: [[PP1:%.*]] = getelementptr [[S:%.*]], %s* [[P:%.*]], i64 [[H]] ; ALL-NEXT: [[LOAD:%.*]] = load [[S]], %s* [[PP1]], align 4 -; ALL-NEXT: ret [[S]] %load +; ALL-NEXT: ret [[S]] [[LOAD]] ; %a = mul nsw i32 %k, 36 %b = mul nsw i32 %a, %l @@ -1227,7 +1227,7 @@ define %s @test79(%s *%p, i64 %i, i32 %j) { ; ALL-NEXT: [[PP:%.*]] = getelementptr inbounds i8, i8* [[Q]], i64 [[TMP2]] ; ALL-NEXT: [[R:%.*]] = bitcast i8* [[PP]] to %s* ; ALL-NEXT: [[L:%.*]] = load [[S:%.*]], %s* [[R]], align 4 -; ALL-NEXT: ret [[S]] %l +; ALL-NEXT: ret [[S]] [[L]] ; %a = mul nsw i64 %i, 36 %b = trunc i64 %a to i32