[Mlir-commits] [mlir] [MLIR][Arith] Ensure ConstantOp validates signless integers for vectors (PR #177857)
Miloš Poletanović
llvmlistbot at llvm.org
Sun Jan 25 11:15:49 PST 2026
================
@@ -0,0 +1,24 @@
+// RUN: mlir-opt -convert-scf-to-spirv %s -o - | FileCheck %s
+// NOTE: Assertions have been autogenerated by utils/generate-test-checks.py
+
+// This script is intended to make adding checks to a test case quick and easy.
+// It is *not* authoritative about what constitutes a good test. After using the
+// script, be sure to review and refine the generated checks. For example,
+// CHECK lines should be minimized and named to reflect the test’s intent.
+// For comprehensive guidelines, see:
+// * https://mlir.llvm.org/getting_started/TestingGuide/
+
+module {
+// CHECK-LABEL: spirv.func @main() "None" {
+// CHECK: %[[THREAD_ID_0:.*]] = gpu.thread_id x
+// CHECK: %[[VAL_0:.*]] = spirv.Constant -5 : si32
+// CHECK: %[[FROM_ELEMENTS_0:.*]] = vector.from_elements %[[VAL_0]] : vector<1xsi32>
+// CHECK: spirv.Return
+// CHECK: }
+ func.func @main() {
+ %0 = gpu.thread_id x
----------------
milos1397 wrote:
We don't, removed it.
https://github.com/llvm/llvm-project/pull/177857
More information about the Mlir-commits
mailing list