1 // RUN: llvm-tblgen %s | FileCheck %s
4 // CHECK: bit IsDouble = 1;
5 // CHECK: bit IsDouble = 1;
6 // CHECK: bit IsDouble = 1;
7 // CHECK-NOT: bit IsDouble = 1;
9 class Instruction<bits<4> opc, string Name> {
15 multiclass basic_r<bits<4> opc> {
16 let name = "newname" in {
17 def rr : Instruction<opc, "rr">;
18 def rm : Instruction<opc, "rm">;
21 let name = "othername" in
22 def rx : Instruction<opc, "rx">;
25 multiclass basic_ss<bits<4> opc> {
27 defm SS : basic_r<opc>;
30 defm SD : basic_r<opc>;
33 defm ADD : basic_ss<0xf>;