[llvm] [SPIRV] Fix getNumScalarOrVectorTotalBitWidth to handle OpTypeBool type (PR #186296)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 13 01:46:03 PDT 2026
================
@@ -0,0 +1,91 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
----------------
jmmartinez wrote:
When I ran this through `spirv-val` I've got:
```
error: line 56: Expected input to be a pointer or int or float vector or scalar: Bitcast
%46 = OpBitcast %uchar %45
```
Have you looked into it?
https://github.com/llvm/llvm-project/pull/186296
More information about the llvm-commits
mailing list