mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
21 lines
390 B
LLVM
21 lines
390 B
LLVM
|
; RUN: llvm-as < %s | llc -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
|