1 // RUN: llvm-tblgen %s | FileCheck %s
3 // CHECK: bit IsDouble = 1;
4 // CHECK: bit IsDouble = 1;
5 // CHECK: bit IsDouble = 1;
6 // CHECK-NOT: bit IsDouble = 1;
8 class Instruction<bits<4> opc, string Name> {
14 multiclass basic_r<bits<4> opc> {
15 let name = "newname" in {
16 def rr : Instruction<opc, "rr">;
17 def rm : Instruction<opc, "rm">;
20 let name = "othername" in
21 def rx : Instruction<opc, "rx">;
24 multiclass basic_ss<bits<4> opc> {
26 defm SS : basic_r<opc>;
29 defm SD : basic_r<opc>;
32 defm ADD : basic_ss<0xf>;