2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s -march=xcore -mcpu=xs1b-generic | FileCheck %s
|
2009-07-24 08:38:20 +08:00
|
|
|
|
|
|
|
define i32 *@addr_G() {
|
|
|
|
entry:
|
2013-07-14 14:24:09 +08:00
|
|
|
; CHECK-LABEL: addr_G:
|
2009-07-24 08:38:20 +08:00
|
|
|
; CHECK: get r11, id
|
|
|
|
ret i32* @G
|
|
|
|
}
|
|
|
|
|
|
|
|
@G = thread_local global i32 15
|
2011-03-05 04:03:14 +08:00
|
|
|
; CHECK: .section .dp.data,"awd",@progbits
|
2009-07-24 08:38:20 +08:00
|
|
|
; 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
|