| ; RUN: llc < %s -march=xcore | FileCheck %s |
| call void @fr(i32* @gd, i32* @gr) |
| ; CHECK-NOT: .hidden test_hidden |
| declare hidden void @test_hidden_declaration() |
| define hidden void @test_hidden() { |
| call void @test_hidden_declaration() |
| define protected void @test_protected() { |
| ; CHECK: .globl array.globound |
| ; CHECK: .set array.globound, 2 |
| ; CHECK: .weak array.globound |
| @array = weak global [2 x i32] zeroinitializer |
| ; CHECK: .globl ac.globound |
| ; CHECK: .set ac.globound, 2 |
| ; CHECK: .weak ac.globound |
| @ac = common global [2 x i32] zeroinitializer |
| @gc = common global i32 0 |
| ; CHECK-NOT: .hidden test_hidden_declaration |
| declare extern_weak void @fr(i32*, i32*) |
| @gr = extern_weak global i32 |