28 lines · plain
1// RUN: not llvm-tblgen -gen-disassembler -I %p/../../../include %s 2>&1 \2// RUN: | FileCheck %s --implicit-check-not=error:3 4include "llvm/Target/Target.td"5 6def CustomOp : Operand<i32>;7 8// Used to crash.9// CHECK: error: In instruction 'I', operand #0 has 1 sub-arg names, expected 010 11def I : Instruction {12 let Size = 1;13 bits<8> Inst;14 bits<1> i;15 16 let Inst{0} = 0;17 let Inst{1} = i;18 19 let OutOperandList = (outs);20 let InOperandList = (ins (CustomOp $i):$op);21}22 23def II : InstrInfo;24 25def MyTarget : Target {26 let InstructionSet = II;27}28