<commit_before>; RUN: llc < %s -march=xcore | FileCheck %s

; CHECK: .weak fd
define weak void @fd() {
  call void @fr(i32* @gd, i32* @gr)
  ret void
}

; CHECK-NOT: .hidden
define hidden void @test_hidden() {
  unreachable
}

; CHECK-NOT: .protected
define protected void @test_protected() {
  unreachable
}

; CHECK: .globl array.globound
; CHECK: array.globound = 2
; CHECK: .weak array.globound
; CHECK: .globl array
; CHECK: .weak array
@array = weak global [2 x i32] zeroinitializer

; CHECK: .weak gd
@gd = weak global i32 0

; CHECK: .weak gr
@gr = extern_weak global i32

; CHECK: .weak fr
declare extern_weak void @fr(i32*, i32*)
<commit_msg>XCore target test for hidden declaration<commit_after>; RUN: llc < %s -march=xcore | FileCheck %s

; CHECK: .weak fd
define weak void @fd() {
  call void @fr(i32* @gd, i32* @gr)
  ret void
}

; CHECK-NOT: .hidden test_hidden
declare hidden void @test_hidden_declaration()
define hidden void @test_hidden() {
  call void @test_hidden_declaration()
  unreachable
}

; CHECK-NOT: .protected
define protected void @test_protected() {
  unreachable
}

; CHECK: .globl array.globound
; CHECK: array.globound = 2
; CHECK: .weak array.globound
; CHECK: .globl array
; CHECK: .weak array
@array = weak global [2 x i32] zeroinitializer

; CHECK: .weak gd
@gd = weak global i32 0

; CHECK-NOT: .hidden test_hidden_declaration

; CHECK: .weak gr
@gr = extern_weak global i32

; CHECK: .weak fr
declare extern_weak void @fr(i32*, i32*)

{'fraction_non_alphanumeric': 0.12338983050847457, 'fraction_numerical': 0.02305084745762712, 'mean_word_length': 4.037542662116041, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1438869', 'n_tokens_mistral': 554, 'n_tokens_neox': 530, 'n_words': 178}