Files
clang-p2996/llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.wait.event.ll
Jay Foad f12059eb3f [AMDGPU] Fix llvm.amdgcn.s.wait.event.export.ready for GFX12 (#78191)
The meaning of bit 0 of the immediate operand of S_WAIT_EVENT has been
flipped from GFX11.
2024-01-17 11:59:15 +00:00

19 lines
795 B
LLVM

; RUN: llc -global-isel=0 -mtriple=amdgcn -verify-machineinstrs -mcpu=gfx1100 < %s | FileCheck -check-prefixes=GCN,GFX11 %s
; RUN: llc -global-isel=1 -mtriple=amdgcn -verify-machineinstrs -mcpu=gfx1100 < %s | FileCheck -check-prefixes=GCN,GFX11 %s
; RUN: llc -global-isel=0 -mtriple=amdgcn -verify-machineinstrs -mcpu=gfx1200 < %s | FileCheck -check-prefixes=GCN,GFX12 %s
; RUN: llc -global-isel=1 -mtriple=amdgcn -verify-machineinstrs -mcpu=gfx1200 < %s | FileCheck -check-prefixes=GCN,GFX12 %s
; GCN-LABEL: {{^}}test_wait_event:
; GFX11: s_wait_event 0x0
; GFX12: s_wait_event 0x1
define amdgpu_ps void @test_wait_event() #0 {
entry:
call void @llvm.amdgcn.s.wait.event.export.ready() #0
ret void
}
declare void @llvm.amdgcn.s.wait.event.export.ready() #0
attributes #0 = { nounwind }