[Mlir-commits] [mlir] [MLIR][Arith] Ensure ConstantOp validates signless integers for vectors (PR #177857)

Jakub Kuderski llvmlistbot at llvm.org
Sun Jan 25 19:38:40 PST 2026


================
@@ -0,0 +1,14 @@
+// RUN: mlir-opt -convert-scf-to-spirv %s -o - | FileCheck %s
+// NOTE: Assertions have been autogenerated by utils/generate-test-checks.py
+
+// CHECK-LABEL:   spirv.func @main() "None" {
+// CHECK:           %[[VAL_0:.*]] = spirv.Constant -5 : si32
+// CHECK:           %[[FROM_ELEMENTS_0:.*]] = vector.from_elements %[[VAL_0]] : vector<1xsi32>
+// CHECK:           spirv.Return
+// CHECK:         }
----------------
kuhar wrote:

nit: little point in matching anything after the return
```suggestion
```

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


More information about the Mlir-commits mailing list