1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-01-05 12:31:33 +00:00
llvm-6502/test/CodeGen/XCore/tls.ll

21 lines
386 B
LLVM
Raw Normal View History

; RUN: llc < %s -march=xcore -mcpu=xs1b-generic | FileCheck %s
define i32 *@addr_G() {
entry:
; CHECK-LABEL: 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