[llvm] 22b6a4f - [GlobalISel] Update test checks before a patch.
Amara Emerson via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 5 07:24:17 PDT 2022
Author: Amara Emerson
Date: 2022-09-05T15:24:07+01:00
New Revision: 22b6a4fcac1296646ce647295141ab71845348d1
URL: https://github.com/llvm/llvm-project/commit/22b6a4fcac1296646ce647295141ab71845348d1
DIFF: https://github.com/llvm/llvm-project/commit/22b6a4fcac1296646ce647295141ab71845348d1.diff
LOG: [GlobalISel] Update test checks before a patch.
Added:
Modified:
llvm/test/CodeGen/AArch64/GlobalISel/combine-extract-vec-elt.mir
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AArch64/GlobalISel/combine-extract-vec-elt.mir b/llvm/test/CodeGen/AArch64/GlobalISel/combine-extract-vec-elt.mir
index 997117a5d8df0..022618ae96e66 100644
--- a/llvm/test/CodeGen/AArch64/GlobalISel/combine-extract-vec-elt.mir
+++ b/llvm/test/CodeGen/AArch64/GlobalISel/combine-extract-vec-elt.mir
@@ -17,9 +17,10 @@ body: |
; CHECK-LABEL: name: extract_from_build_vector
; CHECK: liveins: $x0, $x1
- ; CHECK: %arg1:_(s64) = COPY $x0
- ; CHECK: $x0 = COPY %arg1(s64)
- ; CHECK: RET_ReallyLR implicit $x0
+ ; CHECK-NEXT: {{ $}}
+ ; CHECK-NEXT: %arg1:_(s64) = COPY $x0
+ ; CHECK-NEXT: $x0 = COPY %arg1(s64)
+ ; CHECK-NEXT: RET_ReallyLR implicit $x0
%arg1:_(s64) = COPY $x0
%arg2:_(s64) = COPY $x1
%zero:_(s32) = G_CONSTANT i32 0
@@ -46,9 +47,10 @@ body: |
; CHECK-LABEL: name: extract_from_build_vector_idx1
; CHECK: liveins: $x0, $x1
- ; CHECK: %arg2:_(s64) = COPY $x1
- ; CHECK: $x0 = COPY %arg2(s64)
- ; CHECK: RET_ReallyLR implicit $x0
+ ; CHECK-NEXT: {{ $}}
+ ; CHECK-NEXT: %arg2:_(s64) = COPY $x1
+ ; CHECK-NEXT: $x0 = COPY %arg2(s64)
+ ; CHECK-NEXT: RET_ReallyLR implicit $x0
%arg1:_(s64) = COPY $x0
%arg2:_(s64) = COPY $x1
%one:_(s32) = G_CONSTANT i32 1
@@ -75,13 +77,14 @@ body: |
; CHECK-LABEL: name: extract_from_build_vector_idx_invalid
; CHECK: liveins: $x0, $x1
- ; CHECK: %arg1:_(s64) = COPY $x0
- ; CHECK: %arg2:_(s64) = COPY $x1
- ; CHECK: %idx:_(s32) = G_CONSTANT i32 4
- ; CHECK: %bv:_(<2 x s64>) = G_BUILD_VECTOR %arg1(s64), %arg2(s64)
- ; CHECK: %extract:_(s64) = G_EXTRACT_VECTOR_ELT %bv(<2 x s64>), %idx(s32)
- ; CHECK: $x0 = COPY %extract(s64)
- ; CHECK: RET_ReallyLR implicit $x0
+ ; CHECK-NEXT: {{ $}}
+ ; CHECK-NEXT: %arg1:_(s64) = COPY $x0
+ ; CHECK-NEXT: %arg2:_(s64) = COPY $x1
+ ; CHECK-NEXT: %idx:_(s32) = G_CONSTANT i32 4
+ ; CHECK-NEXT: %bv:_(<2 x s64>) = G_BUILD_VECTOR %arg1(s64), %arg2(s64)
+ ; CHECK-NEXT: %extract:_(s64) = G_EXTRACT_VECTOR_ELT %bv(<2 x s64>), %idx(s32)
+ ; CHECK-NEXT: $x0 = COPY %extract(s64)
+ ; CHECK-NEXT: RET_ReallyLR implicit $x0
%arg1:_(s64) = COPY $x0
%arg2:_(s64) = COPY $x1
%idx:_(s32) = G_CONSTANT i32 4
@@ -108,10 +111,11 @@ body: |
; CHECK-LABEL: name: extract_from_build_vector_trunc
; CHECK: liveins: $x0, $x1
- ; CHECK: %arg1:_(s64) = COPY $x0
- ; CHECK: %extract:_(s32) = G_TRUNC %arg1(s64)
- ; CHECK: $w0 = COPY %extract(s32)
- ; CHECK: RET_ReallyLR implicit $w0
+ ; CHECK-NEXT: {{ $}}
+ ; CHECK-NEXT: %arg1:_(s64) = COPY $x0
+ ; CHECK-NEXT: %extract:_(s32) = G_TRUNC %arg1(s64)
+ ; CHECK-NEXT: $w0 = COPY %extract(s32)
+ ; CHECK-NEXT: RET_ReallyLR implicit $w0
%arg1:_(s64) = COPY $x0
%arg2:_(s64) = COPY $x1
%zero:_(s32) = G_CONSTANT i32 0
@@ -138,14 +142,15 @@ body: |
; CHECK-LABEL: name: extract_from_build_vector_multiple_uses
; CHECK: liveins: $x0, $x1
- ; CHECK: %arg1:_(s64) = COPY $x0
- ; CHECK: %arg2:_(s64) = COPY $x1
- ; CHECK: %zero:_(s32) = G_CONSTANT i32 0
- ; CHECK: %bv:_(<2 x s64>) = G_BUILD_VECTOR %arg1(s64), %arg2(s64)
- ; CHECK: %extract:_(s64) = G_EXTRACT_VECTOR_ELT %bv(<2 x s64>), %zero(s32)
- ; CHECK: $x0 = COPY %extract(s64)
- ; CHECK: $q0 = COPY %bv(<2 x s64>)
- ; CHECK: RET_ReallyLR implicit $x0
+ ; CHECK-NEXT: {{ $}}
+ ; CHECK-NEXT: %arg1:_(s64) = COPY $x0
+ ; CHECK-NEXT: %arg2:_(s64) = COPY $x1
+ ; CHECK-NEXT: %zero:_(s32) = G_CONSTANT i32 0
+ ; CHECK-NEXT: %bv:_(<2 x s64>) = G_BUILD_VECTOR %arg1(s64), %arg2(s64)
+ ; CHECK-NEXT: %extract:_(s64) = G_EXTRACT_VECTOR_ELT %bv(<2 x s64>), %zero(s32)
+ ; CHECK-NEXT: $x0 = COPY %extract(s64)
+ ; CHECK-NEXT: $q0 = COPY %bv(<2 x s64>)
+ ; CHECK-NEXT: RET_ReallyLR implicit $x0
%arg1:_(s64) = COPY $x0
%arg2:_(s64) = COPY $x1
%zero:_(s32) = G_CONSTANT i32 0
@@ -172,9 +177,10 @@ body: |
; combine.
; CHECK-LABEL: name: extract_from_insert
; CHECK: liveins: $x0, $x1
- ; CHECK: %arg1:_(s64) = COPY $x0
- ; CHECK: $x0 = COPY %arg1(s64)
- ; CHECK: RET_ReallyLR implicit $x0
+ ; CHECK-NEXT: {{ $}}
+ ; CHECK-NEXT: %arg1:_(s64) = COPY $x0
+ ; CHECK-NEXT: $x0 = COPY %arg1(s64)
+ ; CHECK-NEXT: RET_ReallyLR implicit $x0
%arg1:_(s64) = COPY $x0
%arg2:_(s64) = COPY $x1
%undef:_(<2 x s64>) = G_IMPLICIT_DEF
More information about the llvm-commits
mailing list