1 ; RUN: llc < %s -march=xcore -mcpu=xs1b-generic | FileCheck %s
3 define i32 *@addr_G1() {
6 ; CHECK: ldaw r0, dp[G1]
10 define i32 *@addr_G2() {
13 ; CHECK: ldaw r0, dp[G2]
17 define i32 *@addr_G3() {
20 ; CHECK: ldaw r11, cp[G3]
25 define i32 **@addr_G4() {
28 ; CHECK: ldaw r0, dp[G4]
32 define i32 **@addr_G5() {
35 ; CHECK: ldaw r11, cp[G5]
40 define i32 **@addr_G6() {
43 ; CHECK: ldaw r0, dp[G6]
47 define i32 **@addr_G7() {
50 ; CHECK: ldaw r11, cp[G7]
55 define i32 *@addr_G8() {
58 ; CHECK: ldaw r0, dp[G8]
63 ; CHECK: .section .dp.data,"awd",@progbits
67 ; CHECK: .section .dp.bss,"awd",@nobits
70 @G3 = constant i32 9401
71 ; CHECK: .section .cp.rodata.cst4,"aMc",@progbits,4
75 ; CHECK: .section .dp.data,"awd",@progbits
78 @G5 = constant i32* @G1
79 ; CHECK: .section .cp.rodata,"ac",@progbits
83 ; CHECK: .section .dp.data,"awd",@progbits
86 @G7 = constant i32* @G8
87 ; CHECK: .section .cp.rodata,"ac",@progbits
90 @G8 = internal global i32 9312
91 ; CHECK: .section .dp.data,"awd",@progbits