[Mlir-commits] [mlir] [mlir][llvm dialect] Verify element type of nested types (PR #148975)

Tobias Gysi llvmlistbot at llvm.org
Tue Jul 15 23:31:30 PDT 2025


================
@@ -439,6 +439,105 @@ llvm.func @scalable_vec_requires_splat() -> vector<[4]xf64> {
   llvm.return %0 : vector<[4]xf64>
 }
 
+
+// -----
+
+llvm.func @int_attr_requires_int_type() -> f32 {
+  // expected-error @+1 {{expected integer type}}
----------------
gysit wrote:

```suggestion
  // expected-error @below {{expected integer type}}
```
ulta nit: can you use below everywhere in the moved tests? It is preferred over @+1

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


More information about the Mlir-commits mailing list