1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64-linux-gnu -O0 -run-pass=legalizer %s -o - | FileCheck %s
8 liveins: $w0, $w1, $w2, $w3
9 ; CHECK-LABEL: name: legal_v4s32
10 ; CHECK: [[COPY:%[0-9]+]]:_(s32) = COPY $w0
11 ; CHECK: [[COPY1:%[0-9]+]]:_(s32) = COPY $w1
12 ; CHECK: [[COPY2:%[0-9]+]]:_(s32) = COPY $w2
13 ; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY $w3
14 ; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<4 x s32>) = G_BUILD_VECTOR [[COPY]](s32), [[COPY1]](s32), [[COPY2]](s32), [[COPY3]](s32)
15 ; CHECK: $q0 = COPY [[BUILD_VECTOR]](<4 x s32>)
21 %4:_(<4 x s32>) = G_BUILD_VECTOR %0(s32), %1(s32), %2(s32), %3(s32)
22 $q0 = COPY %4(<4 x s32>)
30 ; CHECK-LABEL: name: legal_v2s64
31 ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x0
32 ; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $x1
33 ; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x s64>) = G_BUILD_VECTOR [[COPY]](s64), [[COPY1]](s64)
34 ; CHECK: $q0 = COPY [[BUILD_VECTOR]](<2 x s64>)
38 %2:_(<2 x s64>) = G_BUILD_VECTOR %0(s64), %1(s64)
39 $q0 = COPY %2(<2 x s64>)
47 ; CHECK-LABEL: name: legal_v2p0
48 ; CHECK: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
49 ; CHECK: [[COPY1:%[0-9]+]]:_(p0) = COPY $x1
50 ; CHECK: [[BUILD_VECTOR:%[0-9]+]]:_(<2 x p0>) = G_BUILD_VECTOR [[COPY]](p0), [[COPY1]](p0)
51 ; CHECK: $q0 = COPY [[BUILD_VECTOR]](<2 x p0>)
55 %2:_(<2 x p0>) = G_BUILD_VECTOR %0(p0), %1(p0)
56 $q0 = COPY %2(<2 x p0>)