1; RUN: llc -march=hexagon -hexagon-cext=0 < %s | FileCheck %s
2
3@i65_l = external global i65
4@i65_s = external global i65
5@i129_l = external global i129
6@i129_s = external global i129
7
8; CHECK-LABEL: i129_ls
9; CHECK-DAG: r[[REG0:[0-9:]+]] = memd(##i129_l)
10; CHECK-DAG: r[[REG1:[0-9:]+]] = memd(##i129_l+8)
11; CHECK-DAG: r[[REG2:[0-9]+]] = memub(##i129_l+16)
12; CHECK-DAG: memb(##i129_s+16) = r[[REG2]]
13; CHECK-DAG: memd(##i129_s+8) = r[[REG1]]
14; CHECK-DAG: memd(##i129_s) = r[[REG0]]
15define void @i129_ls() nounwind  {
16        %tmp = load i129, i129* @i129_l
17        store i129 %tmp, i129* @i129_s
18        ret void
19}
20
21; CHECK-LABEL: i65_ls
22; CHECK-DAG: r[[REG0:[0-9:]+]] = memd(##i65_l)
23; CHECK-DAG: r[[REG1:[0-9]+]] = memub(##i65_l+8)
24; CHECK-DAG: memd(##i65_s) = r[[REG0]]
25; CHECK-DAG: memb(##i65_s+8) = r[[REG1]]
26define void @i65_ls() nounwind  {
27        %tmp = load i65, i65* @i65_l
28        store i65 %tmp, i65* @i65_s
29        ret void
30}
31