mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
dab756ad3e
Both -fPIC and -G0 disable placement of globals in small data section, but if a global has an explicit section assigmnent placing it in small data, it should go there anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346523 91177308-0d34-0410-b5e6-96231b3b80d8
7 lines
242 B
LLVM
7 lines
242 B
LLVM
; RUN: llc -march=hexagon -hexagon-small-data-threshold=0 < %s | FileCheck %s
|
|
; RUN: llc -march=hexagon -relocation-model=pic < %s | FileCheck %s
|
|
|
|
; CHECK: .section .sdata.4,"aws",@progbits
|
|
@g0 = global i32 zeroinitializer, section ".sdata"
|
|
|