xref: /llvm-project/llvm/test/TableGen/ConstraintChecking3.td (revision f676e84bba016157f5879fa66d86737ac8920c4b)
1// RUN: not llvm-tblgen -gen-asm-writer -I %p -I %p/../../include %s 2>&1 | FileCheck %s -DFILE=%s
2
3include "ConstraintChecking.inc"
4
5// (This is illegal because the '=' has to be surrounded by whitespace)
6
7// CHECK: [[FILE]]:[[@LINE+1]]:5: error: Unrecognized constraint '$dest1=$dest2' in 'Foo'
8def Foo : TestInstructionWithConstraints<"$dest1=$dest2">;
9