[llvm] AMDGPU/GFX12: Insert waitcnts before stores with scope_sys (PR #82996)
Pierre van Houtryve via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 26 05:51:03 PST 2024
================
@@ -0,0 +1,16 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
+; RUN: llc -march=amdgcn -mcpu=gfx1200 -verify-machineinstrs < %s | FileCheck -check-prefix=GFX12 %s
+; RUN: llc -global-isel -march=amdgcn -mcpu=gfx1200 -verify-machineinstrs < %s | FileCheck -check-prefix=GFX12 %s
+
+define amdgpu_ps void @intrinsic_store_system_scope(i32 %val, <4 x i32> inreg %rsrc, i32 %vindex, i32 %voffset, i32 inreg %soffset) {
----------------
Pierre-vh wrote:
https://llvm.org/docs/AMDGPUUsage.html#memory-scopes says the default is system scope, do simple `store i32 42, ptr %ptr` have SCOPE_SYS? If so they need to be tested as well
https://github.com/llvm/llvm-project/pull/82996
More information about the llvm-commits
mailing list