mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
e714145bd0
Summary: The commit rL348922 introduced a means to set Metadata section kind for a global variable, if its explicit section name was prefixed with ".AMDGPU.metadata.". This patch changes that prefix to ".AMDGPU.comment.", as "metadata" in the section name might lead to ambiguity with metadata used by AMD PAL runtime. Change-Id: Idd4748800d6fe801441d91595fc21e5a4171e668 Reviewers: kzhuravl Reviewed By: kzhuravl Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, llvm-commits Differential Revision: https://reviews.llvm.org/D56197 llvm-svn: 350292
57 lines
1.7 KiB
LLVM
57 lines
1.7 KiB
LLVM
; RUN: llc < %s -march=amdgcn -mcpu=fiji -filetype=obj | llvm-readobj -symbols -s -sd - | FileCheck %s
|
|
|
|
; CHECK: Section {
|
|
; CHECK: Name: .AMDGPU.comment.info_1
|
|
; CHECK: Type: SHT_PROGBITS (0x1)
|
|
; CHECK: Flags [ (0x0)
|
|
; CHECK: Size: 16
|
|
; CHECK: SectionData (
|
|
; CHECK: 0000: 414D4431 414D4431 414D4431 414D4431 |AMD1AMD1AMD1AMD1|
|
|
; CHECK: )
|
|
; CHECK: }
|
|
|
|
; CHECK: Section {
|
|
; CHECK: Name: .AMDGPU.comment.info_2
|
|
; CHECK: Type: SHT_PROGBITS (0x1)
|
|
; CHECK: Flags [ (0x0)
|
|
; CHECK: Size: 16
|
|
; CHECK: SectionData (
|
|
; CHECK: 0000: 414D4432 414D4432 414D4432 414D4432 |AMD2AMD2AMD2AMD2|
|
|
; CHECK: )
|
|
; CHECK: }
|
|
|
|
; CHECK: Section {
|
|
; CHECK: Name: .AMDGPU.comment.info_3
|
|
; CHECK: Type: SHT_PROGBITS (0x1)
|
|
; CHECK: Flags [ (0x0)
|
|
; CHECK: Size: 16
|
|
; CHECK: SectionData (
|
|
; CHECK: 0000: 414D4433 414D4433 414D4433 414D4433 |AMD3AMD3AMD3AMD3|
|
|
; CHECK: )
|
|
; CHECK: }
|
|
|
|
; CHECK: Symbol {
|
|
; CHECK: Name: comment_info_var_1
|
|
; CHECK: Size: 16
|
|
; CHECK: Binding: Local
|
|
; CHECK: Section: .AMDGPU.comment.info_1
|
|
; CHECK: }
|
|
|
|
; CHECK: Symbol {
|
|
; CHECK: Name: comment_info_var_2
|
|
; CHECK: Size: 16
|
|
; CHECK: Binding: Global
|
|
; CHECK: Section: .AMDGPU.comment.info_2
|
|
; CHECK: }
|
|
|
|
; CHECK: Symbol {
|
|
; CHECK: Name: comment_info_var_3
|
|
; CHECK: Size: 16
|
|
; CHECK: Binding: Global
|
|
; CHECK: Section: .AMDGPU.comment.info_3
|
|
; CHECK: }
|
|
|
|
@comment_info_var_1 = internal global [4 x i32][i32 826559809, i32 826559809, i32 826559809, i32 826559809], align 1, section ".AMDGPU.comment.info_1"
|
|
@comment_info_var_2 = constant [4 x i32][i32 843337025, i32 843337025, i32 843337025, i32 843337025], align 1, section ".AMDGPU.comment.info_2"
|
|
@comment_info_var_3 = global [4 x i32][i32 860114241, i32 860114241, i32 860114241, i32 860114241], align 1, section ".AMDGPU.comment.info_3"
|