[llvm] [SPIR-V] Fix vloadn OpenCL builtin lowering (PR #81148)

Michal Paszkowski via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 20 19:42:38 PST 2024


================
@@ -0,0 +1,40 @@
+; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
----------------
michalpaszkowski wrote:

I added a comment below. It looks like the SPIR-V validator is doing additional checks on the arguments of those OpExtInst calls and those are not valid here. I want this test to only check the vloadn builtin name resolution to keep the tests as small as possible.
```
; This test only intends to check the vloadn builtin name resolution.
; The calls to the OpenCL builtins are not valid and will not pass SPIR-V validation.
```


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


More information about the llvm-commits mailing list