aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/TableGen/ConstraintChecking3.td
blob: 886e6d52a039fe9e8dcba3bb3c313c2719a9d851 (plain)
1
2
3
4
5
6
7
8
// RUN: not llvm-tblgen -gen-asm-writer -I %p -I %p/../../include %s 2>&1 | FileCheck %s -DFILE=%s

include "ConstraintChecking.inc"

// (This is illegal because the '=' has to be surrounded by whitespace)

// CHECK: [[FILE]]:[[@LINE+1]]:5: error: Unrecognized constraint '$dest1=$dest2' in 'Foo'
def Foo : TestInstructionWithConstraints<"$dest1=$dest2">;