annotate llvm/test/CodeGen/AMDGPU/amdpal-gs.ll @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
1 ; RUN: llc -mtriple=amdgcn--amdpal -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
2 ; RUN: llc -mtriple=amdgcn--amdpal -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
3 ; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -enable-var-scope %s
150
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 ; GCN-LABEL: {{^}}gs_amdpal:
207
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
6 ; GCN: .amdgpu_pal_metadata
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
7 ; GCN-NEXT: ---
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
8 ; GCN-NEXT: amdpal.pipelines:
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
9 ; GCN-NEXT: - .hardware_stages:
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
10 ; GCN-NEXT: .gs:
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
11 ; GCN-NEXT: .entry_point: gs_amdpal
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
12 ; GCN-NEXT: .scratch_memory_size: 0
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
13 ; GCN: .registers:
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
14 ; GCN-NEXT: 0x2c8a (SPI_SHADER_PGM_RSRC1_GS): 0
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
15 ; GCN-NEXT: ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
16 ; GCN-NEXT: .end_amdgpu_pal_metadata
150
anatofuz
parents:
diff changeset
17 define amdgpu_gs half @gs_amdpal(half %arg0) {
anatofuz
parents:
diff changeset
18 %add = fadd half %arg0, 1.0
anatofuz
parents:
diff changeset
19 ret half %add
anatofuz
parents:
diff changeset
20 }