1 ; RUN: llc < %s -march=xcore | FileCheck %s
2 define void @a_val() nounwind {
5 @b_val = constant i32 42, section ".cp.rodata"
8 @a = alias void ()* @a_val
10 @c = alias i32* @c_val
12 ; CHECK-LABEL: a_addr:
15 define void ()* @a_addr() nounwind {
20 ; CHECK-LABEL: b_addr:
21 ; CHECK: ldaw r11, cp[b]
23 define i32 *@b_addr() nounwind {
28 ; CHECK-LABEL: c_addr:
29 ; CHECK: ldaw r0, dp[c]
31 define i32 *@c_addr() nounwind {