1 // RUN: llvm-tblgen %s | grep ADDPSrr | count 1
3 class Instruction<bits<4> opc, string Name> {
8 multiclass basic_r<bits<4> opc> {
9 def rr : Instruction<opc, "rr">;
10 def rm : Instruction<opc, "rm">;
13 multiclass basic_s<bits<4> opc> {
14 defm SS : basic_r<opc>;
15 defm SD : basic_r<opc>;
18 multiclass basic_p<bits<4> opc> {
19 defm PS : basic_r<opc>;
20 defm PD : basic_r<opc>;
23 defm ADD : basic_s<0xf>, basic_p<0xf>;
24 defm SUB : basic_s<0xe>, basic_p<0xe>;