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 -global-isel-abort=1 -verify-machineinstrs -o - | FileCheck %s
5 name: legal_v4s32_v2s32
6 tracksRegLiveness: true
10 ; CHECK-LABEL: name: legal_v4s32_v2s32
11 ; CHECK: liveins: $d0, $d1
12 ; CHECK: [[COPY:%[0-9]+]]:_(<2 x s32>) = COPY $d0
13 ; CHECK: [[COPY1:%[0-9]+]]:_(<2 x s32>) = COPY $d1
14 ; CHECK: [[CONCAT_VECTORS:%[0-9]+]]:_(<4 x s32>) = G_CONCAT_VECTORS [[COPY]](<2 x s32>), [[COPY1]](<2 x s32>)
15 ; CHECK: $q0 = COPY [[CONCAT_VECTORS]](<4 x s32>)
17 %0:_(<2 x s32>) = COPY $d0
18 %1:_(<2 x s32>) = COPY $d1
19 %2:_(<4 x s32>) = G_CONCAT_VECTORS %0(<2 x s32>), %1(<2 x s32>)
20 $q0 = COPY %2(<4 x s32>)
24 name: legal_v8s16_v4s16
25 tracksRegLiveness: true
29 ; CHECK-LABEL: name: legal_v8s16_v4s16
30 ; CHECK: liveins: $d0, $d1
31 ; CHECK: [[COPY:%[0-9]+]]:_(<4 x s16>) = COPY $d0
32 ; CHECK: [[COPY1:%[0-9]+]]:_(<4 x s16>) = COPY $d1
33 ; CHECK: [[CONCAT_VECTORS:%[0-9]+]]:_(<8 x s16>) = G_CONCAT_VECTORS [[COPY]](<4 x s16>), [[COPY1]](<4 x s16>)
34 ; CHECK: $q0 = COPY [[CONCAT_VECTORS]](<8 x s16>)
36 %0:_(<4 x s16>) = COPY $d0
37 %1:_(<4 x s16>) = COPY $d1
38 %2:_(<8 x s16>) = G_CONCAT_VECTORS %0(<4 x s16>), %1(<4 x s16>)
39 $q0 = COPY %2(<8 x s16>)
43 name: legal_v16s8_v8s8
44 tracksRegLiveness: true
48 ; CHECK-LABEL: name: legal_v16s8_v8s8
50 ; CHECK: %a:_(<8 x s8>) = G_IMPLICIT_DEF
51 ; CHECK: %b:_(<8 x s8>) = G_IMPLICIT_DEF
52 ; CHECK: %concat:_(<16 x s8>) = G_CONCAT_VECTORS %a(<8 x s8>), %b(<8 x s8>)
53 ; CHECK: $q0 = COPY %concat(<16 x s8>)
54 ; CHECK: RET_ReallyLR implicit $q0
55 %a:_(<8 x s8>) = G_IMPLICIT_DEF
56 %b:_(<8 x s8>) = G_IMPLICIT_DEF
57 %concat:_(<16 x s8>) = G_CONCAT_VECTORS %a:_(<8 x s8>), %b:_(<8 x s8>)
58 $q0 = COPY %concat(<16 x s8>)
59 RET_ReallyLR implicit $q0