1 ; RUN: llc < %s -march=xcore | FileCheck %s
4 define weak void @fd() {
5 call void @fr(ptr @gd, ptr @gr)
9 ; CHECK-NOT: .hidden test_hidden
10 declare hidden void @test_hidden_declaration()
11 define hidden void @test_hidden() {
12 call void @test_hidden_declaration()
16 ; CHECK-NOT: .protected
17 define protected void @test_protected() {
21 ; CHECK: .globl array.globound
22 ; CHECK: .set array.globound, 2
23 ; CHECK: .weak array.globound
26 @array = weak global [2 x i32] zeroinitializer
28 ; CHECK: .globl ac.globound
29 ; CHECK: .set ac.globound, 2
30 ; CHECK: .weak ac.globound
33 @ac = common global [2 x i32] zeroinitializer
37 @gd = weak global i32 0
41 @gc = common global i32 0
43 ; CHECK-NOT: .hidden test_hidden_declaration
46 declare extern_weak void @fr(ptr, ptr)
49 @gr = extern_weak global i32