Skip to content

Commit af84427

Browse files
author
Thorsten Schütt
committed
multi use
1 parent 2472c42 commit af84427

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

llvm/test/CodeGen/AArch64/GlobalISel/combine-cast.mir

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,22 @@ body: |
221221
%bv:_(<2 x s32>) = G_BUILD_VECTOR %arg1(s32), %arg2(s32)
222222
%large:_(<2 x s64>) = G_SEXT %bv(<2 x s32>)
223223
$q0 = COPY %large(<2 x s64>)
224+
...
225+
---
226+
name: test_combine_anyext_build_vector_multi_use
227+
legalized: true
228+
body: |
229+
bb.1:
230+
; CHECK-LABEL: name: test_combine_anyext_build_vector_multi_use
231+
; CHECK: %arg1:_(s32) = COPY $w0
232+
; CHECK-NEXT: %arg2:_(s32) = COPY $w0
233+
; CHECK-NEXT: %bv:_(<2 x s32>) = G_BUILD_VECTOR %arg1(s32), %arg2(s32)
234+
; CHECK-NEXT: %large:_(<2 x s64>) = G_ANYEXT %bv(<2 x s32>)
235+
; CHECK-NEXT: $q0 = COPY %large(<2 x s64>)
236+
; CHECK-NEXT: $d0 = COPY %bv(<2 x s32>)
237+
%arg1:_(s32) = COPY $w0
238+
%arg2:_(s32) = COPY $w0
239+
%bv:_(<2 x s32>) = G_BUILD_VECTOR %arg1(s32), %arg2(s32)
240+
%large:_(<2 x s64>) = G_ANYEXT %bv(<2 x s32>)
241+
$q0 = COPY %large(<2 x s64>)
242+
$d0 = COPY %bv(<2 x s32>)

0 commit comments

Comments
 (0)