Skip to content

Commit

Permalink
Test dynamic dimension of memref type (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe authored Jan 17, 2024
1 parent 030074a commit 1769316
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions melior/src/ir/type/mem_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,21 @@ mod tests {
);
}

#[test]
fn dynamic_dimension() {
let context = Context::new();

assert_eq!(
Type::from(MemRefType::new(
Type::float64(&context),
&[i64::MIN],
None,
None,
)),
Type::parse(&context, "memref<?xf64>").unwrap()
);
}

#[test]
fn layout() {
let context = Context::new();
Expand Down

0 comments on commit 1769316

Please sign in to comment.