llvm/mlir/test/mlir-tblgen/expect-symbol.td
Lei Zhang d024b68e6b Use not to invert return code in expected to fail tests
Windows does not like the RUN command of `(... || true) | ...`.

PiperOrigin-RevId: 277587031
2019-10-30 14:38:18 -07:00

19 lines
505 B
TableGen

// RUN: not mlir-tblgen -gen-rewriters -I %S/../../include %s 2>&1 | FileCheck %s
include "mlir/IR/OpBase.td"
def Test_Dialect : Dialect {
let name = "test";
}
def OpA : Op<Test_Dialect, "a"> {
let arguments = (ins I32Attr:$attr);
}
def OpB : Op<Test_Dialect, "b"> {
let arguments = (ins I32Attr:$attr);
}
def : Pat<(OpA $attr), (OpB $attr),
// CHECK: operands to additional constraints can only be symbol references
[(Constraint<CPred<"$0->getValue() == $1">> $attr, 42)]>;