Files
llvm/test/CodeGen/Hexagon/sdata-explicit-section.ll
T
Krzysztof Parzyszek dab756ad3e [Hexagon] Place globals with explicit .sdata section in small data
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
2018-11-09 17:31:22 +00:00

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"