2011-10-06 21:39:59 +08:00
|
|
|
// RUN: llvm-tblgen %s | FileCheck %s
|
2013-11-10 22:26:08 +08:00
|
|
|
// XFAIL: vg_leak
|
2010-06-24 03:50:39 +08:00
|
|
|
|
|
|
|
class Instr<list<dag> pat> {
|
|
|
|
list<dag> Pattern = pat;
|
|
|
|
}
|
|
|
|
|
|
|
|
class Reg {
|
|
|
|
int a = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
def VR128 : Reg;
|
|
|
|
def mem_frag;
|
|
|
|
def set;
|
|
|
|
def addr;
|
|
|
|
def shufp : Reg;
|
|
|
|
|
|
|
|
multiclass shuffle<Reg RC> {
|
|
|
|
def rri : Instr<[(set RC:$dst, (shufp:$src3
|
|
|
|
RC:$src1, RC:$src2))]>;
|
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK: shufp:src3
|
|
|
|
defm ADD : shuffle<VR128>;
|