mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +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
598 B
LLVM
16 lines
598 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 evaluation shader: check for 0x2cca (SPI_SHADER_PGM_RSRC1_ES) in pal metadata
|
|
; GCN-LABEL: {{^}}es_amdpal:
|
|
; GCN: .amdgpu_pal_metadata
|
|
; GCN: 0x2cca (SPI_SHADER_PGM_RSRC1_ES)
|
|
define amdgpu_es half @es_amdpal(half %arg0) {
|
|
%add = fadd half %arg0, 1.0
|
|
ret half %add
|
|
}
|
|
|
|
; Force MsgPack format metadata
|
|
!amdgpu.pal.metadata.msgpack = !{!0}
|
|
!0 = !{!""}
|