1 ; RUN: llc < %s -march=xcore | FileCheck %s 2 3 ; CHECK: .weak fd 4 define weak void @fd() { 5 call void @fr(i32* @gd, i32* @gr) 6 ret void 7 } 8 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() 13 unreachable 14 } 15 16 ; CHECK-NOT: .protected 17 define protected void @test_protected() { 18 unreachable 19 } 20 21 ; CHECK: .globl array.globound 22 ; CHECK: array.globound = 2 23 ; CHECK: .weak array.globound 24 ; CHECK: .globl array 25 ; CHECK: .weak array 26 @array = weak global [2 x i32] zeroinitializer 27 28 ; CHECK: .globl ac.globound 29 ; CHECK: ac.globound = 2 30 ; CHECK: .weak ac.globound 31 ; CHECK: .globl ac 32 ; CHECK: .weak ac 33 @ac = common global [2 x i32] zeroinitializer 34 35 ; CHECK: .globl gd 36 ; CHECK: .weak gd 37 @gd = weak global i32 0 38 39 ; CHECK: .globl gc 40 ; CHECK: .weak gc 41 @gc = common global i32 0 42 43 ; CHECK-NOT: .hidden test_hidden_declaration 44 45 ; CHECK: .weak gr 46 @gr = extern_weak global i32 47 48 ; CHECK: .weak fr 49 declare extern_weak void @fr(i32*, i32*) 50 51