llvm-6502/test/CodeGen/XCore/tls.ll
Chris Lattner 760e24cd05 use XCore-specific section with xcore specific cp/dp flags to restore
support for globals going into the appropriate sections with the flags.

This hopefully finishes unbreaking the previous behavior that I broke before.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79079 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-15 06:09:35 +00:00

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