1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64 -O0 -run-pass=legalizer -global-isel-abort=1 %s -o - | FileCheck %s
6 tracksRegLiveness: true
11 ; CHECK-LABEL: name: shuffle_v4i32
12 ; CHECK: liveins: $q0, $q1
13 ; CHECK: [[COPY:%[0-9]+]]:_(<4 x s32>) = COPY $q0
14 ; CHECK: [[COPY1:%[0-9]+]]:_(<4 x s32>) = COPY $q1
15 ; CHECK: [[SHUF:%[0-9]+]]:_(<4 x s32>) = G_SHUFFLE_VECTOR [[COPY]](<4 x s32>), [[COPY1]], shufflemask(0, 0, 0, 0)
16 ; CHECK: $q0 = COPY [[SHUF]](<4 x s32>)
17 ; CHECK: RET_ReallyLR implicit $q0
18 %0:_(<4 x s32>) = COPY $q0
19 %1:_(<4 x s32>) = COPY $q1
20 %2:_(<4 x s32>) = G_SHUFFLE_VECTOR %0(<4 x s32>), %1, shufflemask(0, 0, 0, 0)
21 $q0 = COPY %2(<4 x s32>)
22 RET_ReallyLR implicit $q0
28 tracksRegLiveness: true
33 ; CHECK-LABEL: name: shuffle_v2i64
34 ; CHECK: liveins: $q0, $q1
35 ; CHECK: [[COPY:%[0-9]+]]:_(<2 x s64>) = COPY $q0
36 ; CHECK: [[COPY1:%[0-9]+]]:_(<2 x s64>) = COPY $q1
37 ; CHECK: [[SHUF:%[0-9]+]]:_(<2 x s64>) = G_SHUFFLE_VECTOR [[COPY]](<2 x s64>), [[COPY1]], shufflemask(0, 0)
38 ; CHECK: $q0 = COPY [[SHUF]](<2 x s64>)
39 ; CHECK: RET_ReallyLR implicit $q0
40 %0:_(<2 x s64>) = COPY $q0
41 %1:_(<2 x s64>) = COPY $q1
42 %2:_(<2 x s64>) = G_SHUFFLE_VECTOR %0(<2 x s64>), %1, shufflemask(0, 0)
43 $q0 = COPY %2(<2 x s64>)
44 RET_ReallyLR implicit $q0
48 name: shuffle_1elt_mask
50 tracksRegLiveness: true
55 ; CHECK-LABEL: name: shuffle_1elt_mask
56 ; CHECK: liveins: $d0, $d1
57 ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $d0
58 ; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $d1
59 ; CHECK: [[COPY2:%[0-9]+]]:_(s64) = COPY [[COPY]](s64)
60 ; CHECK: [[COPY3:%[0-9]+]]:_(s64) = COPY [[COPY1]](s64)
61 ; CHECK: $d0 = COPY [[COPY2]](s64)
62 ; CHECK: $d1 = COPY [[COPY3]](s64)
63 ; CHECK: RET_ReallyLR implicit $d0, implicit $d1
66 %3:_(s64) = G_SHUFFLE_VECTOR %0:_(s64), %1:_, shufflemask(0)
67 %4:_(s64) = G_SHUFFLE_VECTOR %0:_(s64), %1:_, shufflemask(1)
70 RET_ReallyLR implicit $d0, implicit $d1