1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple aarch64 -run-pass=aarch64-postlegalizer-combiner -verify-machineinstrs %s -o - | FileCheck %s
8 tracksRegLiveness: true
13 ; Split a store of <2 x i64> into two scalar stores.
15 ; CHECK-LABEL: name: v2s64_split
18 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
19 ; CHECK-NEXT: %zero:_(s64) = G_CONSTANT i64 0
20 ; CHECK-NEXT: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 8
21 ; CHECK-NEXT: [[PTR_ADD:%[0-9]+]]:_(p0) = G_PTR_ADD [[COPY]], [[C]](s64)
22 ; CHECK-NEXT: G_STORE %zero(s64), [[COPY]](p0) :: (store (s64), align 16)
23 ; CHECK-NEXT: G_STORE %zero(s64), [[PTR_ADD]](p0) :: (store (s64) into unknown-address + 8)
24 ; CHECK-NEXT: RET_ReallyLR
26 %zero:_(s64) = G_CONSTANT i64 0
27 %zerovec:_(<2 x s64>) = G_BUILD_VECTOR %zero, %zero
28 G_STORE %zerovec(<2 x s64>), %0(p0) :: (store (<2 x s64>))
35 tracksRegLiveness: true
40 ; CHECK-LABEL: name: v4i32_split
43 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
44 ; CHECK-NEXT: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
45 ; CHECK-NEXT: [[C1:%[0-9]+]]:_(s64) = G_CONSTANT i64 8
46 ; CHECK-NEXT: [[PTR_ADD:%[0-9]+]]:_(p0) = G_PTR_ADD [[COPY]], [[C1]](s64)
47 ; CHECK-NEXT: G_STORE [[C]](s64), [[COPY]](p0) :: (store (s64), align 16)
48 ; CHECK-NEXT: G_STORE [[C]](s64), [[PTR_ADD]](p0) :: (store (s64) into unknown-address + 8)
49 ; CHECK-NEXT: RET_ReallyLR
51 %zero:_(s32) = G_CONSTANT i32 0
52 %zerovec:_(<4 x s32>) = G_BUILD_VECTOR %zero, %zero, %zero, %zero
53 G_STORE %zerovec(<4 x s32>), %0(p0) :: (store (<4 x s32>))
60 tracksRegLiveness: true
65 ; CHECK-LABEL: name: v8i16_split
68 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
69 ; CHECK-NEXT: [[C:%[0-9]+]]:_(s64) = G_CONSTANT i64 0
70 ; CHECK-NEXT: [[C1:%[0-9]+]]:_(s64) = G_CONSTANT i64 8
71 ; CHECK-NEXT: [[PTR_ADD:%[0-9]+]]:_(p0) = G_PTR_ADD [[COPY]], [[C1]](s64)
72 ; CHECK-NEXT: G_STORE [[C]](s64), [[COPY]](p0) :: (store (s64), align 16)
73 ; CHECK-NEXT: G_STORE [[C]](s64), [[PTR_ADD]](p0) :: (store (s64) into unknown-address + 8)
74 ; CHECK-NEXT: RET_ReallyLR
76 %zero:_(s16) = G_CONSTANT i16 0
77 %zerovec:_(<8 x s16>) = G_BUILD_VECTOR %zero, %zero, %zero, %zero, %zero, %zero, %zero, %zero
78 G_STORE %zerovec(<8 x s16>), %0(p0) :: (store (<8 x s16>))
87 tracksRegLiveness: true
92 ; CHECK-LABEL: name: v2i32_nosplit
95 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
96 ; CHECK-NEXT: %zero:_(s32) = G_CONSTANT i32 0
97 ; CHECK-NEXT: %zerovec:_(<2 x s32>) = G_BUILD_VECTOR %zero(s32), %zero(s32)
98 ; CHECK-NEXT: G_STORE %zerovec(<2 x s32>), [[COPY]](p0) :: (store (<2 x s32>))
99 ; CHECK-NEXT: RET_ReallyLR
101 %zero:_(s32) = G_CONSTANT i32 0
102 %zerovec:_(<2 x s32>) = G_BUILD_VECTOR %zero, %zero
103 G_STORE %zerovec(<2 x s32>), %0(p0) :: (store (<2 x s32>))
110 tracksRegLiveness: true
115 ; CHECK-LABEL: name: multiple_uses
116 ; CHECK: liveins: $x0
118 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
119 ; CHECK-NEXT: %zero:_(s64) = G_CONSTANT i64 0
120 ; CHECK-NEXT: %zerovec:_(<2 x s64>) = G_BUILD_VECTOR %zero(s64), %zero(s64)
121 ; CHECK-NEXT: G_STORE %zerovec(<2 x s64>), [[COPY]](p0) :: (store (<2 x s64>))
122 ; CHECK-NEXT: $q0 = COPY %zerovec(<2 x s64>)
123 ; CHECK-NEXT: RET_ReallyLR
125 %zero:_(s64) = G_CONSTANT i64 0
126 %zerovec:_(<2 x s64>) = G_BUILD_VECTOR %zero, %zero
127 G_STORE %zerovec(<2 x s64>), %0(p0) :: (store (<2 x s64>))
135 tracksRegLiveness: true
140 ; CHECK-LABEL: name: truncating
141 ; CHECK: liveins: $x0
143 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
144 ; CHECK-NEXT: %zero:_(s64) = G_CONSTANT i64 0
145 ; CHECK-NEXT: %zerovec:_(<2 x s64>) = G_BUILD_VECTOR %zero(s64), %zero(s64)
146 ; CHECK-NEXT: G_STORE %zerovec(<2 x s64>), [[COPY]](p0) :: (store (<2 x s32>))
147 ; CHECK-NEXT: RET_ReallyLR
149 %zero:_(s64) = G_CONSTANT i64 0
150 %zerovec:_(<2 x s64>) = G_BUILD_VECTOR %zero, %zero
151 G_STORE %zerovec(<2 x s64>), %0(p0) :: (store (<2 x s32>))
158 tracksRegLiveness: true
163 ; CHECK-LABEL: name: volatile
164 ; CHECK: liveins: $x0
166 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
167 ; CHECK-NEXT: %zero:_(s64) = G_CONSTANT i64 0
168 ; CHECK-NEXT: %zerovec:_(<2 x s64>) = G_BUILD_VECTOR %zero(s64), %zero(s64)
169 ; CHECK-NEXT: G_STORE %zerovec(<2 x s64>), [[COPY]](p0) :: (volatile store (<2 x s64>))
170 ; CHECK-NEXT: RET_ReallyLR
172 %zero:_(s64) = G_CONSTANT i64 0
173 %zerovec:_(<2 x s64>) = G_BUILD_VECTOR %zero, %zero
174 G_STORE %zerovec(<2 x s64>), %0(p0) :: (volatile store (<2 x s64>))
181 tracksRegLiveness: true
186 ; Split a store of <2 x i64> into two scalar stores.
188 ; CHECK-LABEL: name: s128_scalar
189 ; CHECK: liveins: $x0
191 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
192 ; CHECK-NEXT: %zero:_(s128) = G_CONSTANT i128 0
193 ; CHECK-NEXT: G_STORE %zero(s128), [[COPY]](p0) :: (store (s128))
194 ; CHECK-NEXT: RET_ReallyLR
196 %zero:_(s128) = G_CONSTANT i128 0
197 G_STORE %zero(s128), %0(p0) :: (store (s128))