aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/XCore/tls.ll
blob: ed41afae0996032394ad9f0396933bcd98c2c67d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: llc < %s -march=xcore -mcpu=xs1b-generic | FileCheck %s

define i32 *@addr_G() {
entry:
; CHECK: addr_G:
; CHECK: get r11, id
	ret i32* @G
}

@G = thread_local global i32 15
; CHECK: .section .dp.data,"awd",@progbits
; CHECK: G:
; CHECK: .long 15
; CHECK: .long 15
; CHECK: .long 15
; CHECK: .long 15
; CHECK: .long 15
; CHECK: .long 15
; CHECK: .long 15
; CHECK: .long 15