mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
0fe4e29071
Summary: PAL metadata now supports both the old linear reg=val pairs format and the new MsgPack format. The MsgPack format uses YAML as its textual representation. On output to YAML, a mnemonic name is provided for some hardware registers. Differential Revision: https://reviews.llvm.org/D57028 Change-Id: I2bbaabaaca4b3574f7e03b80fbef7c7a69d06a94 llvm-svn: 356591
16 lines
592 B
LLVM
16 lines
592 B
LLVM
; RUN: llc -mtriple=amdgcn--amdpal -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=SI %s
|
|
; RUN: llc -mtriple=amdgcn--amdpal -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=VI %s
|
|
|
|
; amdpal load shader: check for 0x2d4a (SPI_SHADER_PGM_RSRC1_LS) in pal metadata
|
|
; GCN-LABEL: {{^}}ls_amdpal:
|
|
; GCN: .amdgpu_pal_metadata
|
|
; GCN: 0x2d4a (SPI_SHADER_PGM_RSRC1_LS)
|
|
define amdgpu_ls half @ls_amdpal(half %arg0) {
|
|
%add = fadd half %arg0, 1.0
|
|
ret half %add
|
|
}
|
|
|
|
; Force MsgPack format metadata
|
|
!amdgpu.pal.metadata.msgpack = !{!0}
|
|
!0 = !{!""}
|