2017-10-14 03:02:59 +08:00
|
|
|
; RUN: llc -march=hexagon -hexagon-cext=0 < %s | FileCheck %s
|
2013-03-08 22:15:15 +08:00
|
|
|
|
|
|
|
@i65_l = external global i65
|
|
|
|
@i65_s = external global i65
|
|
|
|
@i129_l = external global i129
|
|
|
|
@i129_s = external global i129
|
|
|
|
|
2016-04-29 23:49:13 +08:00
|
|
|
; CHECK-LABEL: i129_ls
|
|
|
|
; CHECK-DAG: r[[REG0:[0-9:]+]] = memd(##i129_l)
|
|
|
|
; CHECK-DAG: r[[REG1:[0-9:]+]] = memd(##i129_l+8)
|
|
|
|
; CHECK-DAG: r[[REG2:[0-9]+]] = memub(##i129_l+16)
|
|
|
|
; CHECK-DAG: memb(##i129_s+16) = r[[REG2]]
|
|
|
|
; CHECK-DAG: memd(##i129_s+8) = r[[REG1]]
|
|
|
|
; CHECK-DAG: memd(##i129_s) = r[[REG0]]
|
2013-03-08 22:15:15 +08:00
|
|
|
define void @i129_ls() nounwind {
|
2015-02-28 05:17:42 +08:00
|
|
|
%tmp = load i129, i129* @i129_l
|
2013-03-08 22:15:15 +08:00
|
|
|
store i129 %tmp, i129* @i129_s
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2016-04-29 23:49:13 +08:00
|
|
|
; CHECK-LABEL: i65_ls
|
|
|
|
; CHECK-DAG: r[[REG0:[0-9:]+]] = memd(##i65_l)
|
|
|
|
; CHECK-DAG: r[[REG1:[0-9]+]] = memub(##i65_l+8)
|
|
|
|
; CHECK-DAG: memd(##i65_s) = r[[REG0]]
|
|
|
|
; CHECK-DAG: memb(##i65_s+8) = r[[REG1]]
|
2013-03-08 22:15:15 +08:00
|
|
|
define void @i65_ls() nounwind {
|
2015-02-28 05:17:42 +08:00
|
|
|
%tmp = load i65, i65* @i65_l
|
2013-03-08 22:15:15 +08:00
|
|
|
store i65 %tmp, i65* @i65_s
|
|
|
|
ret void
|
2013-07-14 04:38:47 +08:00
|
|
|
}
|