Mercurial > hg > CbC > CbC_llvm
diff mlir/test/IR/invalid.mlir @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 |
parents | c4bab56944e8 |
children |
line wrap: on
line diff
--- a/mlir/test/IR/invalid.mlir Wed Nov 09 17:47:54 2022 +0900 +++ b/mlir/test/IR/invalid.mlir Fri Aug 18 09:04:13 2023 +0900 @@ -112,6 +112,14 @@ // ----- +func.func @unknown_dialect_operation() { + // expected-error@below {{Dialect `foo' not found for custom op 'foo.asd'}} + // expected-note-re@below {{Registered dialects:{{.*}} test{{.*}}}} + foo.asd +} + +// ----- + func.func @non_operation() { // expected-error@+1 {{custom op 'asd' is unknown (tried 'func.asd' as well)}} asd @@ -361,7 +369,7 @@ // ----- -func.func @dialect_type_missing_greater(!foo<) -> () { // expected-error {{unbalanced ')' character in pretty dialect name}} +func.func @dialect_type_missing_greater(!foo<) -> () { // expected-error {{unbalanced '<' character in pretty dialect name}} return // ----- @@ -406,7 +414,7 @@ // ----- -// expected-error @+1 {{unbalanced ']' character in pretty dialect name}} +// expected-error @+1 {{unbalanced '<' character in pretty dialect name}} func.func @invalid_unknown_type_dialect_name() -> !invalid.dialect<!x@#]!@#> // ----- @@ -574,16 +582,11 @@ // ----- -// expected-error @+1 {{unbalanced ')' character in pretty dialect name}} +// expected-error @+1 {{unbalanced '<' character in pretty dialect name}} func.func @bad_arrow(%arg : !unreg.ptr<(i32)->) // ----- -// expected-error @+1 {{attribute 'attr' occurs more than once in the attribute list}} -test.format_symbol_name_attr_op @name { attr = "xx" } - -// ----- - func.func @forward_reference_type_check() -> (i8) { cf.br ^bb2 @@ -643,7 +646,7 @@ // expected at the end of foo, not on the return line. func.func @error_at_end_of_line() { // expected-error@+1 {{expected ':' followed by operation type}} - %0 = "foo"() + %0 = "foo"() return } @@ -652,7 +655,7 @@ // This makes sure we emit an error at the end of the correct line, the : is // expected at the end of foo, not on the return line. func.func @error_at_end_of_line() { - %0 = "foo"() + %0 = "foo"() // expected-error@-1 {{expected ':' followed by operation type}} // This is a comment and so is the thing above.