1 // RUN: not llvm-tblgen -gen-emitter -I %p/../../include %s 2>&1 | FileCheck %s --implicit-check-not=error:
3 // Check that we emit reasonable diagnostics when fields do not have
4 // corresponding operands.
6 include "llvm/Target/Target.td"
8 def ArchInstrInfo : InstrInfo { }
11 let InstructionSet = ArchInstrInfo;
14 def Reg : Register<"reg">;
16 def Regs : RegisterClass<"foo", [i32], 0, (add Reg)>;
18 // CHECK: error: No operand named rd in record foo
19 // CHECK: error: No operand named rs in record foo
20 // CHECK: note: Dumping record for previous error:
21 def foo : Instruction {
30 let OutOperandList = (outs Regs:$xd);
31 let InOperandList = (ins);