1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/CodeGen/Hexagon/sdata-explicit-section.ll
Krzysztof Parzyszek 2f7314c085 [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.

llvm-svn: 346523
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"