# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py # RUN: llc -mtriple=aarch64 -O0 -run-pass=legalizer -global-isel-abort=1 %s -o - | FileCheck %s --- name: shuffle_v4i32 alignment: 4 tracksRegLiveness: true body: | bb.1: liveins: $q0, $q1 ; CHECK-LABEL: name: shuffle_v4i32 ; CHECK: liveins: $q0, $q1 ; CHECK: [[COPY:%[0-9]+]]:_(<4 x s32>) = COPY $q0 ; CHECK: [[COPY1:%[0-9]+]]:_(<4 x s32>) = COPY $q1 ; CHECK: [[SHUF:%[0-9]+]]:_(<4 x s32>) = G_SHUFFLE_VECTOR [[COPY]](<4 x s32>), [[COPY1]], shufflemask(0, 0, 0, 0) ; CHECK: $q0 = COPY [[SHUF]](<4 x s32>) ; CHECK: RET_ReallyLR implicit $q0 %0:_(<4 x s32>) = COPY $q0 %1:_(<4 x s32>) = COPY $q1 %2:_(<4 x s32>) = G_SHUFFLE_VECTOR %0(<4 x s32>), %1, shufflemask(0, 0, 0, 0) $q0 = COPY %2(<4 x s32>) RET_ReallyLR implicit $q0 ... --- name: shuffle_v2i64 alignment: 4 tracksRegLiveness: true body: | bb.1: liveins: $q0, $q1 ; CHECK-LABEL: name: shuffle_v2i64 ; CHECK: liveins: $q0, $q1 ; CHECK: [[COPY:%[0-9]+]]:_(<2 x s64>) = COPY $q0 ; CHECK: [[COPY1:%[0-9]+]]:_(<2 x s64>) = COPY $q1 ; CHECK: [[SHUF:%[0-9]+]]:_(<2 x s64>) = G_SHUFFLE_VECTOR [[COPY]](<2 x s64>), [[COPY1]], shufflemask(0, 0) ; CHECK: $q0 = COPY [[SHUF]](<2 x s64>) ; CHECK: RET_ReallyLR implicit $q0 %0:_(<2 x s64>) = COPY $q0 %1:_(<2 x s64>) = COPY $q1 %2:_(<2 x s64>) = G_SHUFFLE_VECTOR %0(<2 x s64>), %1, shufflemask(0, 0) $q0 = COPY %2(<2 x s64>) RET_ReallyLR implicit $q0 ... --- name: shuffle_v2p0 alignment: 4 tracksRegLiveness: true body: | bb.1: liveins: $q0, $q1 ; CHECK-LABEL: name: shuffle_v2p0 ; CHECK: liveins: $q0, $q1 ; CHECK: [[COPY:%[0-9]+]]:_(<2 x p0>) = COPY $q0 ; CHECK: [[COPY1:%[0-9]+]]:_(<2 x p0>) = COPY $q1 ; CHECK: [[SHUF:%[0-9]+]]:_(<2 x p0>) = G_SHUFFLE_VECTOR [[COPY]](<2 x p0>), [[COPY1]], shufflemask(0, 0) ; CHECK: $q0 = COPY [[SHUF]](<2 x p0>) ; CHECK: RET_ReallyLR implicit $q0 %0:_(<2 x p0>) = COPY $q0 %1:_(<2 x p0>) = COPY $q1 %2:_(<2 x p0>) = G_SHUFFLE_VECTOR %0(<2 x p0>), %1, shufflemask(0, 0) $q0 = COPY %2(<2 x p0>) RET_ReallyLR implicit $q0 ... --- name: shuffle_v16i8 alignment: 4 tracksRegLiveness: true body: | bb.1: liveins: $q0, $q1 ; CHECK-LABEL: name: shuffle_v16i8 ; CHECK: liveins: $q0, $q1 ; CHECK: [[COPY:%[0-9]+]]:_(<16 x s8>) = COPY $q0 ; CHECK: [[COPY1:%[0-9]+]]:_(<16 x s8>) = COPY $q1 ; 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) ; CHECK: $q0 = COPY [[SHUF]](<16 x s8>) ; CHECK: RET_ReallyLR implicit $q0 %0:_(<16 x s8>) = COPY $q0 %1:_(<16 x s8>) = COPY $q1 %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) $q0 = COPY %2(<16 x s8>) RET_ReallyLR implicit $q0 ... --- name: shuffle_v8i16 alignment: 4 tracksRegLiveness: true body: | bb.1: liveins: $q0, $q1 ; CHECK-LABEL: name: shuffle_v8i16 ; CHECK: liveins: $q0, $q1 ; CHECK: [[COPY:%[0-9]+]]:_(<8 x s16>) = COPY $q0 ; CHECK: [[COPY1:%[0-9]+]]:_(<8 x s16>) = COPY $q1 ; CHECK: [[SHUF:%[0-9]+]]:_(<8 x s16>) = G_SHUFFLE_VECTOR [[COPY]](<8 x s16>), [[COPY1]], shufflemask(0, 0, 0, 0, 0, 0, 0, 0) ; CHECK: $q0 = COPY [[SHUF]](<8 x s16>) ; CHECK: RET_ReallyLR implicit $q0 %0:_(<8 x s16>) = COPY $q0 %1:_(<8 x s16>) = COPY $q1 %2:_(<8 x s16>) = G_SHUFFLE_VECTOR %0(<8 x s16>), %1, shufflemask(0, 0, 0, 0, 0, 0, 0, 0) $q0 = COPY %2(<8 x s16>) RET_ReallyLR implicit $q0 ... --- name: shuffle_1elt_mask alignment: 4 tracksRegLiveness: true body: | bb.1: liveins: $d0, $d1 ; CHECK-LABEL: name: shuffle_1elt_mask ; CHECK: liveins: $d0, $d1 ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $d0 ; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $d1 ; CHECK: [[COPY2:%[0-9]+]]:_(s64) = COPY [[COPY]](s64) ; CHECK: [[COPY3:%[0-9]+]]:_(s64) = COPY [[COPY1]](s64) ; CHECK: $d0 = COPY [[COPY2]](s64) ; CHECK: $d1 = COPY [[COPY3]](s64) ; CHECK: RET_ReallyLR implicit $d0, implicit $d1 %0:_(s64) = COPY $d0 %1:_(s64) = COPY $d1 %3:_(s64) = G_SHUFFLE_VECTOR %0:_(s64), %1:_, shufflemask(0) %4:_(s64) = G_SHUFFLE_VECTOR %0:_(s64), %1:_, shufflemask(1) $d0 = COPY %3(s64) $d1 = COPY %4(s64) RET_ReallyLR implicit $d0, implicit $d1 ...