[Mlir-commits] [mlir] [mlir] [memref] add more checks to the memref.reinterpret_cast (PR #112669)

donald chen llvmlistbot at llvm.org
Tue Oct 22 19:14:58 PDT 2024


================
@@ -217,6 +217,15 @@ func.func @memref_reinterpret_cast_no_map_but_offset(%in: memref<?xf32>) {
 
 // -----
 
+func.func @memref_reinterpret_cast_offset_mismatch_dynamic(%in: memref<?xf32>, %offset : index) {
+  // expected-error @+1 {{expected result type with offset = -9223372036854775808 instead of 0}}
----------------
cxy-1993 wrote:

done

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


More information about the Mlir-commits mailing list