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 3--- 4name: shuffle_v4i32 5alignment: 4 6tracksRegLiveness: true 7body: | 8 bb.1: 9 liveins: $q0, $q1 10 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 23 24... 25--- 26name: shuffle_v2i64 27alignment: 4 28tracksRegLiveness: true 29body: | 30 bb.1: 31 liveins: $q0, $q1 32 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 45 46... 47--- 48name: shuffle_v2p0 49alignment: 4 50tracksRegLiveness: true 51body: | 52 bb.1: 53 liveins: $q0, $q1 54 55 ; CHECK-LABEL: name: shuffle_v2p0 56 ; CHECK: liveins: $q0, $q1 57 ; CHECK: [[COPY:%[0-9]+]]:_(<2 x p0>) = COPY $q0 58 ; CHECK: [[COPY1:%[0-9]+]]:_(<2 x p0>) = COPY $q1 59 ; CHECK: [[SHUF:%[0-9]+]]:_(<2 x p0>) = G_SHUFFLE_VECTOR [[COPY]](<2 x p0>), [[COPY1]], shufflemask(0, 0) 60 ; CHECK: $q0 = COPY [[SHUF]](<2 x p0>) 61 ; CHECK: RET_ReallyLR implicit $q0 62 %0:_(<2 x p0>) = COPY $q0 63 %1:_(<2 x p0>) = COPY $q1 64 %2:_(<2 x p0>) = G_SHUFFLE_VECTOR %0(<2 x p0>), %1, shufflemask(0, 0) 65 $q0 = COPY %2(<2 x p0>) 66 RET_ReallyLR implicit $q0 67 68... 69--- 70name: shuffle_v16i8 71alignment: 4 72tracksRegLiveness: true 73body: | 74 bb.1: 75 liveins: $q0, $q1 76 77 ; CHECK-LABEL: name: shuffle_v16i8 78 ; CHECK: liveins: $q0, $q1 79 ; CHECK: [[COPY:%[0-9]+]]:_(<16 x s8>) = COPY $q0 80 ; CHECK: [[COPY1:%[0-9]+]]:_(<16 x s8>) = COPY $q1 81 ; CHECK: [[SHUF:%[0-9]+]]:_(<16 x s8>) = G_SHUFFLE_VECTOR [[COPY]](<16 x s8>), [[COPY1]], shufflemask(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) 82 ; CHECK: $q0 = COPY [[SHUF]](<16 x s8>) 83 ; CHECK: RET_ReallyLR implicit $q0 84 %0:_(<16 x s8>) = COPY $q0 85 %1:_(<16 x s8>) = COPY $q1 86 %2:_(<16 x s8>) = G_SHUFFLE_VECTOR %0(<16 x s8>), %1, shufflemask(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) 87 $q0 = COPY %2(<16 x s8>) 88 RET_ReallyLR implicit $q0 89 90... 91--- 92name: shuffle_v8i16 93alignment: 4 94tracksRegLiveness: true 95body: | 96 bb.1: 97 liveins: $q0, $q1 98 99 ; CHECK-LABEL: name: shuffle_v8i16 100 ; CHECK: liveins: $q0, $q1 101 ; CHECK: [[COPY:%[0-9]+]]:_(<8 x s16>) = COPY $q0 102 ; CHECK: [[COPY1:%[0-9]+]]:_(<8 x s16>) = COPY $q1 103 ; CHECK: [[SHUF:%[0-9]+]]:_(<8 x s16>) = G_SHUFFLE_VECTOR [[COPY]](<8 x s16>), [[COPY1]], shufflemask(0, 0, 0, 0, 0, 0, 0, 0) 104 ; CHECK: $q0 = COPY [[SHUF]](<8 x s16>) 105 ; CHECK: RET_ReallyLR implicit $q0 106 %0:_(<8 x s16>) = COPY $q0 107 %1:_(<8 x s16>) = COPY $q1 108 %2:_(<8 x s16>) = G_SHUFFLE_VECTOR %0(<8 x s16>), %1, shufflemask(0, 0, 0, 0, 0, 0, 0, 0) 109 $q0 = COPY %2(<8 x s16>) 110 RET_ReallyLR implicit $q0 111 112... 113--- 114name: shuffle_1elt_mask 115alignment: 4 116tracksRegLiveness: true 117body: | 118 bb.1: 119 liveins: $d0, $d1 120 121 ; CHECK-LABEL: name: shuffle_1elt_mask 122 ; CHECK: liveins: $d0, $d1 123 ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $d0 124 ; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $d1 125 ; CHECK: [[COPY2:%[0-9]+]]:_(s64) = COPY [[COPY]](s64) 126 ; CHECK: [[COPY3:%[0-9]+]]:_(s64) = COPY [[COPY1]](s64) 127 ; CHECK: $d0 = COPY [[COPY2]](s64) 128 ; CHECK: $d1 = COPY [[COPY3]](s64) 129 ; CHECK: RET_ReallyLR implicit $d0, implicit $d1 130 %0:_(s64) = COPY $d0 131 %1:_(s64) = COPY $d1 132 %3:_(s64) = G_SHUFFLE_VECTOR %0:_(s64), %1:_, shufflemask(0) 133 %4:_(s64) = G_SHUFFLE_VECTOR %0:_(s64), %1:_, shufflemask(1) 134 $d0 = COPY %3(s64) 135 $d1 = COPY %4(s64) 136 RET_ReallyLR implicit $d0, implicit $d1 137 138... 139