1# RUN: llc -march=hexagon -run-pass amode-opt %s -o - | FileCheck %s
2
3--- |
4  @g0 = external global [16 x i16], align 8
5  define void @foo() {
6    ret void
7  }
8...
9
10---
11name: foo
12tracksRegLiveness: true
13
14body: |
15  bb.0:
16    liveins: $r0
17
18    ; Make sure that the offset in @g0 is 8.
19    ; CHECK: S4_storerh_ur killed $r0, 2, @g0 + 8, $r0
20
21    $r1 = A2_tfrsi @g0+4
22    $r2 = S2_addasl_rrri $r1, $r0, 2
23    S2_storerh_io $r2, 4, $r0
24...
25
26