1 ; RUN: llc < %s -march=xcore -mcpu=xs1b-generic | FileCheck %s
3 define i32 *@addr_G1() {
5 ; CHECK-LABEL: addr_G1:
6 ; CHECK: ldaw r0, dp[G1]
10 define i32 *@addr_G2() {
12 ; CHECK-LABEL: addr_G2:
13 ; CHECK: ldaw r0, dp[G2]
17 define i32 *@addr_G3() {
19 ; CHECK-LABEL: addr_G3:
20 ; CHECK: ldaw r0, dp[G3]
24 define i32 *@addr_iG3() {
26 ; CHECK-LABEL: addr_iG3:
27 ; CHECK: ldaw r11, cp[iG3]
32 define i32 **@addr_G4() {
34 ; CHECK-LABEL: addr_G4:
35 ; CHECK: ldaw r0, dp[G4]
39 define i32 **@addr_G5() {
41 ; CHECK-LABEL: addr_G5:
42 ; CHECK: ldaw r0, dp[G5]
46 define i32 **@addr_iG5() {
48 ; CHECK-LABEL: addr_iG5:
49 ; CHECK: ldaw r11, cp[iG5]
54 define i32 **@addr_G6() {
56 ; CHECK-LABEL: addr_G6:
57 ; CHECK: ldaw r0, dp[G6]
61 define i32 **@addr_G7() {
63 ; CHECK-LABEL: addr_G7:
64 ; CHECK: ldaw r0, dp[G7]
68 define i32 **@addr_iG7() {
70 ; CHECK-LABEL: addr_iG7:
71 ; CHECK: ldaw r11, cp[iG7]
76 define i32 *@addr_G8() {
78 ; CHECK-LABEL: addr_G8:
79 ; CHECK: ldaw r0, dp[G8]
84 ; CHECK: .section .dp.data,"awd",@progbits
88 ; CHECK: .section .dp.bss,"awd",@nobits
91 @G3 = unnamed_addr constant i32 9401
92 ; CHECK: .section .dp.rodata,"awd",@progbits
95 @iG3 = internal constant i32 9401
96 ; CHECK: .section .cp.rodata,"ac",@progbits
100 ; CHECK: .section .dp.data,"awd",@progbits
103 @G5 = unnamed_addr constant i32* @G1
104 ; CHECK: .section .dp.rodata,"awd",@progbits
107 @iG5 = internal unnamed_addr constant i32* @G1
108 ; CHECK: .section .cp.rodata,"ac",@progbits
111 @G6 = global i32* @G8
112 ; CHECK: .section .dp.data,"awd",@progbits
115 @G7 = unnamed_addr constant i32* @G8
116 ; CHECK: .section .dp.rodata,"awd",@progbits
119 @iG7 = internal unnamed_addr constant i32* @G8
120 ; CHECK: .section .cp.rodata,"ac",@progbits
123 @G8 = global i32 9312
124 ; CHECK: .section .dp.data,"awd",@progbits
127 @array = global [10 x i16] zeroinitializer, align 2
128 ; CHECK: .globl array.globound
129 ; CHECK: .set array.globound, 10