[llvm] [SPIR-V] Fix crash on get_global_id with non-integer dimension index (PR #208152)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 8 06:47:14 PDT 2026
================
@@ -0,0 +1,15 @@
+; RUN: not --crash llc -O0 -mtriple=spirv64-unknown-unknown %s -o /dev/null 2>&1 | FileCheck %s
+; RUN: not --crash llc -O2 -mtriple=spirv64-unknown-unknown %s -o /dev/null 2>&1 | FileCheck %s
+
+; get_global_id and its sibling workgroup-query builtins take an integer
+; dimension index.
+
+; CHECK: LLVM ERROR: Expect an integer <Dimindx> argument
+
+declare spir_func i64 @_Z13get_global_idj(bfloat)
----------------
jmmartinez wrote:
Or should we have a more general mangling-to-signature check. Because this will happen for any other builtin too right ?
https://github.com/llvm/llvm-project/pull/208152
More information about the llvm-commits
mailing list