; 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
; 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
; 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
; 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
; 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
; 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