1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64-- -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
5 name: legal_v4s32_v2s32
9 tracksRegLiveness: true
11 - { id: 0, class: fpr }
12 - { id: 1, class: fpr }
13 - { id: 2, class: fpr }
19 ; CHECK-LABEL: name: legal_v4s32_v2s32
20 ; CHECK: liveins: $d0, $d1
21 ; CHECK: [[COPY:%[0-9]+]]:fpr64 = COPY $d0
22 ; CHECK: [[COPY1:%[0-9]+]]:fpr64 = COPY $d1
23 ; CHECK: [[DEF:%[0-9]+]]:fpr128 = IMPLICIT_DEF
24 ; CHECK: [[INSERT_SUBREG:%[0-9]+]]:fpr128 = INSERT_SUBREG [[DEF]], [[COPY1]], %subreg.dsub
25 ; CHECK: [[DEF1:%[0-9]+]]:fpr128 = IMPLICIT_DEF
26 ; CHECK: [[INSERT_SUBREG1:%[0-9]+]]:fpr128 = INSERT_SUBREG [[DEF1]], [[COPY]], %subreg.dsub
27 ; CHECK: [[INSvi64lane:%[0-9]+]]:fpr128 = INSvi64lane [[INSERT_SUBREG1]], 1, [[INSERT_SUBREG]], 0
28 ; CHECK: $q0 = COPY [[INSvi64lane]]
29 ; CHECK: RET_ReallyLR implicit $q0
30 %0:fpr(<2 x s32>) = COPY $d0
31 %1:fpr(<2 x s32>) = COPY $d1
32 %2:fpr(<4 x s32>) = G_CONCAT_VECTORS %0(<2 x s32>), %1(<2 x s32>)
33 $q0 = COPY %2(<4 x s32>)
34 RET_ReallyLR implicit $q0
38 name: legal_v8s16_v4s16
42 tracksRegLiveness: true
44 - { id: 0, class: fpr }
45 - { id: 1, class: fpr }
46 - { id: 2, class: fpr }
52 ; CHECK-LABEL: name: legal_v8s16_v4s16
53 ; CHECK: liveins: $d0, $d1
54 ; CHECK: [[COPY:%[0-9]+]]:fpr64 = COPY $d0
55 ; CHECK: [[COPY1:%[0-9]+]]:fpr64 = COPY $d1
56 ; CHECK: [[DEF:%[0-9]+]]:fpr128 = IMPLICIT_DEF
57 ; CHECK: [[INSERT_SUBREG:%[0-9]+]]:fpr128 = INSERT_SUBREG [[DEF]], [[COPY1]], %subreg.dsub
58 ; CHECK: [[DEF1:%[0-9]+]]:fpr128 = IMPLICIT_DEF
59 ; CHECK: [[INSERT_SUBREG1:%[0-9]+]]:fpr128 = INSERT_SUBREG [[DEF1]], [[COPY]], %subreg.dsub
60 ; CHECK: [[INSvi64lane:%[0-9]+]]:fpr128 = INSvi64lane [[INSERT_SUBREG1]], 1, [[INSERT_SUBREG]], 0
61 ; CHECK: $q0 = COPY [[INSvi64lane]]
62 ; CHECK: RET_ReallyLR implicit $q0
63 %0:fpr(<4 x s16>) = COPY $d0
64 %1:fpr(<4 x s16>) = COPY $d1
65 %2:fpr(<8 x s16>) = G_CONCAT_VECTORS %0(<4 x s16>), %1(<4 x s16>)
66 $q0 = COPY %2(<8 x s16>)
67 RET_ReallyLR implicit $q0
71 name: select_v16s8_v8s8_undef
74 tracksRegLiveness: true
79 ; CHECK-LABEL: name: select_v16s8_v8s8_undef
81 ; CHECK: %a:fpr64 = IMPLICIT_DEF
82 ; CHECK: [[DEF:%[0-9]+]]:fpr128 = IMPLICIT_DEF
83 ; CHECK: %concat:fpr128 = INSERT_SUBREG [[DEF]], %a, %subreg.dsub
84 ; CHECK: $q0 = COPY %concat
85 ; CHECK: RET_ReallyLR implicit $q0
86 %a:fpr(<8 x s8>) = G_IMPLICIT_DEF
87 %b:fpr(<8 x s8>) = G_IMPLICIT_DEF
88 %concat:fpr(<16 x s8>) = G_CONCAT_VECTORS %a(<8 x s8>), %b(<8 x s8>)
89 $q0 = COPY %concat(<16 x s8>)
90 RET_ReallyLR implicit $q0
94 name: select_v16s8_v8s8_not_undef
97 tracksRegLiveness: true
101 ; CHECK-LABEL: name: select_v16s8_v8s8_not_undef
102 ; CHECK: liveins: $q0, $d1
103 ; CHECK: %a:fpr64 = COPY $d0
104 ; CHECK: %b:fpr64 = COPY $d1
105 ; CHECK: [[DEF:%[0-9]+]]:fpr128 = IMPLICIT_DEF
106 ; CHECK: [[INSERT_SUBREG:%[0-9]+]]:fpr128 = INSERT_SUBREG [[DEF]], %b, %subreg.dsub
107 ; CHECK: [[DEF1:%[0-9]+]]:fpr128 = IMPLICIT_DEF
108 ; CHECK: [[INSERT_SUBREG1:%[0-9]+]]:fpr128 = INSERT_SUBREG [[DEF1]], %a, %subreg.dsub
109 ; CHECK: %concat:fpr128 = INSvi64lane [[INSERT_SUBREG1]], 1, [[INSERT_SUBREG]], 0
110 ; CHECK: $q0 = COPY %concat
111 ; CHECK: RET_ReallyLR implicit $q0
112 %a:fpr(<8 x s8>) = COPY $d0
113 %b:fpr(<8 x s8>) = COPY $d1
114 %concat:fpr(<16 x s8>) = G_CONCAT_VECTORS %a(<8 x s8>), %b(<8 x s8>)
115 $q0 = COPY %concat(<16 x s8>)
116 RET_ReallyLR implicit $q0