1// RUN: llvm-tblgen %s | FileCheck %s 2// XFAIL: vg_leak 3 4class Instr<list<dag> pat> { 5 list<dag> Pattern = pat; 6} 7 8class Reg { 9 int a = 3; 10} 11 12def VR128 : Reg; 13def mem_frag; 14def set; 15def addr; 16def shufp : Reg; 17 18multiclass shuffle<Reg RC> { 19 def rri : Instr<[(set RC:$dst, (shufp:$src3 20 RC:$src1, RC:$src2))]>; 21} 22 23// CHECK: shufp:src3 24defm ADD : shuffle<VR128>; 25