xref: /llvm-project/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.wait.event.ll (revision e0a763c490d8ef58dca867e0ef834978ccf8e17d)
1; RUN: llc -global-isel=0 -mtriple=amdgcn -verify-machineinstrs -mcpu=gfx1100 < %s | FileCheck -check-prefixes=GCN,GFX11 %s
2; RUN: llc -global-isel=1 -mtriple=amdgcn -verify-machineinstrs -mcpu=gfx1100 < %s | FileCheck -check-prefixes=GCN,GFX11 %s
3; RUN: llc -global-isel=0 -mtriple=amdgcn -verify-machineinstrs -mcpu=gfx1200 < %s | FileCheck -check-prefixes=GCN,GFX12 %s
4; RUN: llc -global-isel=1 -mtriple=amdgcn -verify-machineinstrs -mcpu=gfx1200 < %s | FileCheck -check-prefixes=GCN,GFX12 %s
5
6; GCN-LABEL: {{^}}test_wait_event:
7; GFX11: s_wait_event 0x0
8; GFX12: s_wait_event 0x2
9
10define amdgpu_ps void @test_wait_event() {
11entry:
12  call void @llvm.amdgcn.s.wait.event.export.ready()
13  ret void
14}
15