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 (), ptr @a_val
9 @b = alias i32, ptr @b_val
10 @c = alias i32, ptr @c_val
12 ; CHECK-LABEL: a_addr:
15 define ptr @a_addr() nounwind {
20 ; CHECK-LABEL: b_addr:
21 ; CHECK: ldaw r11, cp[b]
23 define ptr @b_addr() nounwind {
28 ; CHECK-LABEL: c_addr:
29 ; CHECK: ldaw r0, dp[c]
31 define ptr @c_addr() nounwind {