[llvm] [SPIRV] Addition of image_store.ll and signed_arithmetic_overflow.ll (PR #152289)
Michal Paszkowski via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 28 05:10:42 PDT 2025
================
@@ -0,0 +1,22 @@
+; RUN: llc -O0 -verify-machineinstrs -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
+
+; Image types may be represented in two ways while translating to SPIR-V:
+; - OpenCL form, for example, '%opencl.image2d_ro_t',
+; - SPIR-V form, for example, '%spirv.Image._void_1_0_0_0_0_0_0',
+; but it is still one type which should be translated to one SPIR-V type.
+;
+; The test checks that the code below is successfully translated and only one
+; SPIR-V type for images is generated.
----------------
michalpaszkowski wrote:
```suggestion
; SPIR-V type for images is generated (no duplicate OpTypeImage instructions).
```
https://github.com/llvm/llvm-project/pull/152289
More information about the llvm-commits
mailing list