Skip to content

Commit bcd2d22

Browse files
committed
Test invalid dialect error
1 parent d655d8b commit bcd2d22

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// RUN: mlir-opt %s -convert-gpu-to-nvvm='allowed-dialects=test' -verify-diagnostics
2+
3+
// expected-error @+1 {{dialect does not implement ConvertToLLVMPatternInterface: test}}
4+
gpu.module @test_module_1 {
5+
func.func @test(%0 : index) -> index {
6+
%1 = test.increment %0 : index
7+
func.return %1 : index
8+
}
9+
}
10+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// RUN: mlir-opt %s -convert-gpu-to-rocdl='allowed-dialects=test' -verify-diagnostics
2+
3+
// expected-error @+1 {{dialect does not implement ConvertToLLVMPatternInterface: test}}
4+
gpu.module @test_module_1 {
5+
func.func @test(%0 : index) -> index {
6+
%1 = test.increment %0 : index
7+
func.return %1 : index
8+
}
9+
}
10+

0 commit comments

Comments
 (0)