1 // RUN: not llvm-tblgen -gen-emitter -I %p/../../include %s 2>&1 | FileCheck %s
3 // Check that TableGen doesn't crash on insufficient positional
4 // instruction 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 def foo : Instruction {
27 // CHECK: Too few operands in record foo (no match for variable rs)
28 let OutOperandList = (outs Regs:$xd);
29 let InOperandList = (ins);