1 ; RUN: llc < %s -march=xcore -mcpu=xs1b-generic | FileCheck %s
2 ; RUN: llc -march=xcore -mcpu=xs1b-generic -filetype=null %s
4 define ptr @addr_G1() {
6 ; CHECK-LABEL: addr_G1:
7 ; CHECK: ldaw r0, dp[G1]
11 define ptr @addr_G2() {
13 ; CHECK-LABEL: addr_G2:
14 ; CHECK: ldaw r0, dp[G2]
18 define ptr @addr_G3() {
20 ; CHECK-LABEL: addr_G3:
21 ; CHECK: ldaw r0, dp[G3]
25 define ptr @addr_iG3() {
27 ; CHECK-LABEL: addr_iG3:
28 ; CHECK: ldaw r11, cp[iG3]
33 define ptr @addr_G4() {
35 ; CHECK-LABEL: addr_G4:
36 ; CHECK: ldaw r0, dp[G4]
40 define ptr @addr_G5() {
42 ; CHECK-LABEL: addr_G5:
43 ; CHECK: ldaw r0, dp[G5]
47 define ptr @addr_iG5() {
49 ; CHECK-LABEL: addr_iG5:
50 ; CHECK: ldaw r11, cp[iG5]
55 define ptr @addr_G6() {
57 ; CHECK-LABEL: addr_G6:
58 ; CHECK: ldaw r0, dp[G6]
62 define ptr @addr_G7() {
64 ; CHECK-LABEL: addr_G7:
65 ; CHECK: ldaw r0, dp[G7]
69 define ptr @addr_iG7() {
71 ; CHECK-LABEL: addr_iG7:
72 ; CHECK: ldaw r11, cp[iG7]
77 define ptr @addr_G8() {
79 ; CHECK-LABEL: addr_G8:
80 ; CHECK: ldaw r0, dp[G8]
85 ; CHECK: .section .dp.data,"awd",@progbits
89 ; CHECK: .section .dp.bss,"awd",@nobits
92 @G3 = unnamed_addr constant i32 9401
93 ; CHECK: .section .dp.rodata,"awd",@progbits
96 @iG3 = internal constant i32 9401
97 ; CHECK: .section .cp.rodata,"ac",@progbits
101 ; CHECK: .section .dp.data,"awd",@progbits
104 @G5 = unnamed_addr constant ptr @G1
105 ; CHECK: .section .dp.rodata,"awd",@progbits
108 @iG5 = internal unnamed_addr constant ptr @G1
109 ; CHECK: .section .cp.rodata,"ac",@progbits
113 ; CHECK: .section .dp.data,"awd",@progbits
116 @G7 = unnamed_addr constant ptr @G8
117 ; CHECK: .section .dp.rodata,"awd",@progbits
120 @iG7 = internal unnamed_addr constant ptr @G8
121 ; CHECK: .section .cp.rodata,"ac",@progbits
124 @G8 = global i32 9312
125 ; CHECK: .section .dp.data,"awd",@progbits
128 @array = global [10 x i16] zeroinitializer, align 2
129 ; CHECK: .globl array.globound
130 ; CHECK: .set array.globound, 10