blob: e3a607872858221048d2c57ad82d9ace63873a55 [file] [log] [blame]
Krzysztof Parzyszek39a98422018-01-30 18:12:37 +00001# RUN: llc -march=hexagon -run-pass hexagon-cext-opt %s -o - | FileCheck %s
2
3# Check that "misaligned" extended offsets are handled correctly, that is
4# that the non-extended offsets are still aligned.
5
6# CHECK: %[[B:[0-9]+]]:intregs = A2_addi %{{[0-9]+}}, @array + 174
7# CHECK-DAG: S2_storerd_io %[[B]], 0,
8# CHECK-DAG: S2_storerd_io %[[B]], 8,
9# CHECK-DAG: S2_storerd_io %[[B]], 24,
10# CHECK-DAG: S2_storerd_io %[[B]], 16,
11
12--- |
13 define void @fred() {
14 ret void
15 }
16
17 @array = external global [10000 x i16], align 8
18...
19
20---
21name: fred
22tracksRegLiveness: true
23body: |
24 bb.0:
Puyan Lotfi43e94b12018-01-31 22:04:26 +000025 liveins: $r0
26 %0:intregs = COPY $r0
Krzysztof Parzyszek39a98422018-01-30 18:12:37 +000027 %1:intregs = S4_ori_asl_ri 2, %0, 1
28 %2:doubleregs = A2_tfrpi 0
29 S2_storerd_io %1, @array + 174, %2
30 S2_storerd_io %1, @array + 182, %2
31 S2_storerd_io %1, @array + 198, %2
32 S2_storerd_io %1, @array + 190, %2
33...
34