[llvm] [SPIR-V] Prevent adding duplicate binding instructions for implicit binding (PR #161299)

Steven Perron via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 1 07:41:00 PDT 2025


================
@@ -0,0 +1,20 @@
+; RUN: llc -O0 -verify-machineinstrs -mtriple=spirv1.6-vulkan1.3-library %s -o - 
----------------
s-perron wrote:

If you expect this to have an error. You can do

```suggestion
; RUN: not llc -O0 -verify-machineinstrs -mtriple=spirv1.6-vulkan1.3-library %s -o - 
```

Then you can add `FileCheck` to look for the error message you expect.

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


More information about the llvm-commits mailing list