1// RUN: not llvm-tblgen -gen-asm-writer -DT0 -I %p -I %p/../../include %s 2>&1 | FileCheck %s -DFILE=%s 2// RUN: not llvm-tblgen -gen-asm-writer -DT1 -I %p -I %p/../../include %s 2>&1 | FileCheck %s -DFILE=%s --check-prefix=CHECK1 3// RUN: not llvm-tblgen -gen-asm-writer -DT2 -I %p -I %p/../../include %s 2>&1 | FileCheck %s -DFILE=%s --check-prefix=CHECK2 4// RUN: not llvm-tblgen -gen-asm-writer -DT3 -I %p -I %p/../../include %s 2>&1 | FileCheck %s -DFILE=%s --check-prefix=CHECK3 5// RUN: not llvm-tblgen -gen-asm-writer -DT4 -I %p -I %p/../../include %s 2>&1 | FileCheck %s -DFILE=%s --check-prefix=CHECK4 6 7include "ConstraintChecking.inc" 8 9// Make sure exactly the token "=" appears. 10 11#ifdef T0 12// CHECK: [[FILE]]:[[@LINE+1]]:5: error: Unrecognized constraint '$dest1 != $src2' in 'Foo' 13def Foo : TestInstructionWithConstraints<"$dest1 != $src2">; 14#endif 15 16#ifdef T1 17// CHECK1: [[FILE]]:[[@LINE+1]]:5: error: Unrecognized constraint '$dest1 == $src2' in 'Foo' 18def Foo : TestInstructionWithConstraints<"$dest1 == $src2">; 19#endif 20 21#ifdef T2 22// CHECK2: [[FILE]]:[[@LINE+1]]:5: error: Unrecognized constraint '= $rhs' in 'Foo' 23def Foo : TestInstructionWithConstraints<"= $rhs">; 24#endif 25 26#ifdef T3 27// CHECK3: [[FILE]]:[[@LINE+1]]:5: error: Unrecognized constraint '$lhs =' in 'Foo' 28def Foo : TestInstructionWithConstraints<"$lhs =">; 29#endif 30 31#ifdef T4 32// CHECK4: [[FILE]]:[[@LINE+1]]:5: error: Unrecognized constraint '=' in 'Foo' 33def Foo : TestInstructionWithConstraints<"=">; 34#endif 35