[llvm] [SPIR-V] Fix type mismatch in scalar-to-vector promotion for mixed-type builtins (PR #190969)

Marcos Maronas via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 05:28:32 PDT 2026


================
@@ -1,6 +1,7 @@
 ;; Check that backend converts scalar arg to vector for ldexp math instructions
 
 ; RUN: llc -O0 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %}
 
 ;; #pragma OPENCL EXTENSION cl_khr_fp16 : enable
----------------
maarquitos14 wrote:

Why is this here but not in the other two tests?

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


More information about the llvm-commits mailing list