1// RUN: llvm-tblgen %s | FileCheck %s 2// XFAIL: vg_leak 3 4class Instr<int i> { 5 int index = i; 6} 7 8multiclass Test { 9 def Vx#NAME#PS : Instr<0>; 10 def Vx#NAME#PD : Instr<1>; 11 def Vy#NAME#PS : Instr<2>; 12 def Vy#NAME#PD : Instr<3>; 13} 14 15defm ADD : Test; 16defm SUB : Test; 17 18// CHECK: VxADDPD 19// CHECK: index = 1; 20// CHECK: VxADDPS 21// CHECK: index = 0; 22 23// CHECK: VxSUBPD 24// CHECK: index = 1; 25// CHECK: VxSUBPS 26// CHECK: index = 0; 27 28// CHECK: VyADDPD 29// CHECK: index = 3; 30// CHECK: VyADDPS 31// CHECK: index = 2; 32 33// CHECK: VySUBPD 34// CHECK: index = 3; 35// CHECK: VySUBPS 36// CHECK: index = 2; 37