[llvm] [amdgpu] Add HasBufferInv AMDGPUSubtargetFeature (PR #226254)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 12:51:29 PDT 2026


================
@@ -0,0 +1,10 @@
+// RUN: llvm-mc -triple=amdgpu9.42 -show-encoding %s | FileCheck --check-prefix=SUPPORTED %s
+// RUN: llvm-mc -triple=amdgpu9.50 -show-encoding %s | FileCheck --check-prefix=SUPPORTED %s
+// RUN: llvm-mc -triple=amdgcn-amd-amdhsa -mcpu=gfx9-4-generic -show-encoding %s | FileCheck --check-prefix=SUPPORTED %s
+// RUN: not llvm-mc -triple=amdgpu9.0a -filetype=null %s 2>&1 | FileCheck --check-prefix=GFX90A %s
+// RUN: not llvm-mc -triple=amdgpu9.42 -mattr=-buffer-inv-inst -filetype=null %s 2>&1 | FileCheck --check-prefix=DISABLED %s
+
+buffer_inv sc0 sc1
----------------
arsenm wrote:

I'd hope this is already tested by the assembler?

https://github.com/llvm/llvm-project/pull/226254


More information about the llvm-commits mailing list