1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 3
2 ; RUN: llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx1100 -verify-machineinstrs < %s | FileCheck -check-prefixes=GFX11,GFX11-SDAG %s
3 ; RUN: llc -global-isel=1 -mtriple=amdgcn -mcpu=gfx1100 -verify-machineinstrs < %s | FileCheck -check-prefixes=GFX11,GFX11-GISEL %s
5 declare void @llvm.amdgcn.s.ttracedata(i32)
6 declare void @llvm.amdgcn.s.ttracedata.imm(i16)
8 define amdgpu_cs void @ttracedata_c() {
9 ; GFX11-LABEL: ttracedata_c:
11 ; GFX11-NEXT: s_mov_b32 m0, 0xf4240
12 ; GFX11-NEXT: s_ttracedata
13 ; GFX11-NEXT: s_endpgm
14 call void @llvm.amdgcn.s.ttracedata(i32 1000000)
18 define amdgpu_cs void @ttracedata_s(i32 inreg %val) {
19 ; GFX11-LABEL: ttracedata_s:
21 ; GFX11-NEXT: s_mov_b32 m0, s0
22 ; GFX11-NEXT: s_ttracedata
23 ; GFX11-NEXT: s_endpgm
24 call void @llvm.amdgcn.s.ttracedata(i32 %val)
28 define amdgpu_cs void @ttracedata_v(i32 %val) {
29 ; GFX11-SDAG-LABEL: ttracedata_v:
30 ; GFX11-SDAG: ; %bb.0:
31 ; GFX11-SDAG-NEXT: v_readfirstlane_b32 s0, v0
32 ; GFX11-SDAG-NEXT: s_delay_alu instid0(VALU_DEP_1)
33 ; GFX11-SDAG-NEXT: s_mov_b32 m0, s0
34 ; GFX11-SDAG-NEXT: s_ttracedata
35 ; GFX11-SDAG-NEXT: s_endpgm
37 ; GFX11-GISEL-LABEL: ttracedata_v:
38 ; GFX11-GISEL: ; %bb.0:
39 ; GFX11-GISEL-NEXT: v_readfirstlane_b32 m0, v0
40 ; GFX11-GISEL-NEXT: s_ttracedata
41 ; GFX11-GISEL-NEXT: s_endpgm
42 call void @llvm.amdgcn.s.ttracedata(i32 %val)
46 define amdgpu_cs void @ttracedata_imm() {
47 ; GFX11-LABEL: ttracedata_imm:
49 ; GFX11-NEXT: s_ttracedata_imm 0x3e8
50 ; GFX11-NEXT: s_endpgm
51 call void @llvm.amdgcn.s.ttracedata.imm(i16 1000)