Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / CodeGen / AMDGPU / amdgpu-cs-chain-preserve-cc.ll
blobdaa3d39a3afebd8d23fd8e61c5cf8f37be0300f9
1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc -global-isel=1 -march=amdgcn -mcpu=gfx1100 -verify-machineinstrs < %s | FileCheck -check-prefix=GISEL-GFX11 %s
3 ; RUN: llc -global-isel=1 -march=amdgcn -mcpu=gfx1030 -verify-machineinstrs < %s | FileCheck -check-prefix=GISEL-GFX10 %s
4 ; RUN: llc -global-isel=0 -march=amdgcn -mcpu=gfx1100 -verify-machineinstrs < %s | FileCheck -check-prefix=DAGISEL-GFX11 %s
5 ; RUN: llc -global-isel=0 -march=amdgcn -mcpu=gfx1030 -verify-machineinstrs < %s | FileCheck -check-prefix=DAGISEL-GFX10 %s
7 declare amdgpu_gfx void @use(...)
9 ; FIXME: The values of the counters are undefined on entry to amdgpu_cs_chain_preserve functions, so these waits are unnecessary.
11 define amdgpu_cs_chain_preserve void @amdgpu_cs_chain_preserve_no_stack({ptr, i32, <4 x i32>} inreg %a, {ptr, i32, <4 x i32>} %b) {
12 ; GISEL-GFX11-LABEL: amdgpu_cs_chain_preserve_no_stack:
13 ; GISEL-GFX11:       ; %bb.0:
14 ; GISEL-GFX11-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
15 ; GISEL-GFX11-NEXT:    s_endpgm
17 ; GISEL-GFX10-LABEL: amdgpu_cs_chain_preserve_no_stack:
18 ; GISEL-GFX10:       ; %bb.0:
19 ; GISEL-GFX10-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
20 ; GISEL-GFX10-NEXT:    s_endpgm
22 ; DAGISEL-GFX11-LABEL: amdgpu_cs_chain_preserve_no_stack:
23 ; DAGISEL-GFX11:       ; %bb.0:
24 ; DAGISEL-GFX11-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
25 ; DAGISEL-GFX11-NEXT:    s_endpgm
27 ; DAGISEL-GFX10-LABEL: amdgpu_cs_chain_preserve_no_stack:
28 ; DAGISEL-GFX10:       ; %bb.0:
29 ; DAGISEL-GFX10-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
30 ; DAGISEL-GFX10-NEXT:    s_endpgm
31   ret void