Skip to content

Commit 2cac7bf

Browse files
committed
address review, add invalid test for load frag a f64
1 parent bd21220 commit 2cac7bf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mlir/test/Target/LLVMIR/nvvmir-invalid.mlir

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,3 +621,14 @@ func.func @invalid_range_equal_bounds() {
621621
%0 = nvvm.read.ptx.sreg.warpsize range <i32, 32, 32> : i32
622622
return
623623
}
624+
625+
// -----
626+
627+
// Test for correct return type check for wmma.load fragment a for f64
628+
llvm.func @nvvm_wmma_load_a_f64(%arg0: !llvm.ptr, %arg1 : i32) {
629+
// expected-error @below {{'nvvm.wmma.load' op expected destination type to be f64}}
630+
%0 = nvvm.wmma.load %arg0, %arg1
631+
{eltype = #nvvm.mma_type<f64>, frag = #nvvm.mma_frag<a>, k = 4 : i32, layout = #nvvm.mma_layout<row>, m = 8 : i32, n = 8 : i32}
632+
: (!llvm.ptr) -> !llvm.struct<(f64)>
633+
llvm.return
634+
}

0 commit comments

Comments
 (0)