xref: /openbmc/qemu/target/ppc/translate/vsx-ops.c.inc (revision 93b799fafd9170da3a79a533ea6f73a18de82e22)
1*139c1837SPaolo BonziniGEN_HANDLER_E(mfvsrwz, 0x1F, 0x13, 0x03, 0x0000F800, PPC_NONE, PPC2_VSX207),
2*139c1837SPaolo BonziniGEN_HANDLER_E(mtvsrwa, 0x1F, 0x13, 0x06, 0x0000F800, PPC_NONE, PPC2_VSX207),
3*139c1837SPaolo BonziniGEN_HANDLER_E(mtvsrwz, 0x1F, 0x13, 0x07, 0x0000F800, PPC_NONE, PPC2_VSX207),
4*139c1837SPaolo Bonzini#if defined(TARGET_PPC64)
5*139c1837SPaolo BonziniGEN_HANDLER_E(mfvsrd, 0x1F, 0x13, 0x01, 0x0000F800, PPC_NONE, PPC2_VSX207),
6*139c1837SPaolo BonziniGEN_HANDLER_E(mtvsrd, 0x1F, 0x13, 0x05, 0x0000F800, PPC_NONE, PPC2_VSX207),
7*139c1837SPaolo BonziniGEN_HANDLER_E(mfvsrld, 0X1F, 0x13, 0x09, 0x0000F800, PPC_NONE, PPC2_ISA300),
8*139c1837SPaolo BonziniGEN_HANDLER_E(mtvsrdd, 0X1F, 0x13, 0x0D, 0x0, PPC_NONE, PPC2_ISA300),
9*139c1837SPaolo BonziniGEN_HANDLER_E(mtvsrws, 0x1F, 0x13, 0x0C, 0x0000F800, PPC_NONE, PPC2_ISA300),
10*139c1837SPaolo Bonzini#endif
11*139c1837SPaolo Bonzini
12*139c1837SPaolo Bonzini#define GEN_XX1FORM(name, opc2, opc3, fl2)                              \
13*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2 | 0, opc3, 0, PPC_NONE, fl2), \
14*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2 | 1, opc3, 0, PPC_NONE, fl2)
15*139c1837SPaolo Bonzini
16*139c1837SPaolo Bonzini#define GEN_XX2FORM(name, opc2, opc3, fl2)                           \
17*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2 | 0, opc3, 0, PPC_NONE, fl2), \
18*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2 | 1, opc3, 0, PPC_NONE, fl2)
19*139c1837SPaolo Bonzini
20*139c1837SPaolo Bonzini#define GEN_XX2FORM_EXT(name, opc2, opc3, fl2)                          \
21*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2 | 0, opc3, 0x00100000, PPC_NONE, fl2), \
22*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2 | 1, opc3, 0x00100000, PPC_NONE, fl2)
23*139c1837SPaolo Bonzini
24*139c1837SPaolo Bonzini#define GEN_XX2FORM_EO(name, opc2, opc3, opc4, fl2)                          \
25*139c1837SPaolo BonziniGEN_HANDLER2_E_2(name, #name, 0x3C, opc2 | 0, opc3, opc4, 0, PPC_NONE, fl2), \
26*139c1837SPaolo BonziniGEN_HANDLER2_E_2(name, #name, 0x3C, opc2 | 1, opc3, opc4, 0, PPC_NONE, fl2)
27*139c1837SPaolo Bonzini
28*139c1837SPaolo Bonzini#define GEN_XX3FORM(name, opc2, opc3, fl2)                           \
29*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2 | 0, opc3, 0, PPC_NONE, fl2), \
30*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2 | 1, opc3, 0, PPC_NONE, fl2), \
31*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2 | 2, opc3, 0, PPC_NONE, fl2), \
32*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2 | 3, opc3, 0, PPC_NONE, fl2)
33*139c1837SPaolo Bonzini
34*139c1837SPaolo Bonzini#define GEN_XX3FORM_NAME(name, opcname, opc2, opc3, fl2)               \
35*139c1837SPaolo BonziniGEN_HANDLER2_E(name, opcname, 0x3C, opc2 | 0, opc3, 0, PPC_NONE, fl2), \
36*139c1837SPaolo BonziniGEN_HANDLER2_E(name, opcname, 0x3C, opc2 | 1, opc3, 0, PPC_NONE, fl2), \
37*139c1837SPaolo BonziniGEN_HANDLER2_E(name, opcname, 0x3C, opc2 | 2, opc3, 0, PPC_NONE, fl2), \
38*139c1837SPaolo BonziniGEN_HANDLER2_E(name, opcname, 0x3C, opc2 | 3, opc3, 0, PPC_NONE, fl2)
39*139c1837SPaolo Bonzini
40*139c1837SPaolo Bonzini#define GEN_XX2IFORM(name, opc2, opc3, fl2)                           \
41*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2 | 0, opc3, 1, PPC_NONE, fl2), \
42*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2 | 1, opc3, 1, PPC_NONE, fl2), \
43*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2 | 2, opc3, 1, PPC_NONE, fl2), \
44*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2 | 3, opc3, 1, PPC_NONE, fl2)
45*139c1837SPaolo Bonzini
46*139c1837SPaolo Bonzini#define GEN_XX3FORM_DM(name, opc2, opc3) \
47*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x00, opc3|0x00, 0, PPC_NONE, PPC2_VSX),\
48*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x01, opc3|0x00, 0, PPC_NONE, PPC2_VSX),\
49*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x02, opc3|0x00, 0, PPC_NONE, PPC2_VSX),\
50*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x03, opc3|0x00, 0, PPC_NONE, PPC2_VSX),\
51*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x00, opc3|0x04, 0, PPC_NONE, PPC2_VSX),\
52*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x01, opc3|0x04, 0, PPC_NONE, PPC2_VSX),\
53*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x02, opc3|0x04, 0, PPC_NONE, PPC2_VSX),\
54*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x03, opc3|0x04, 0, PPC_NONE, PPC2_VSX),\
55*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x00, opc3|0x08, 0, PPC_NONE, PPC2_VSX),\
56*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x01, opc3|0x08, 0, PPC_NONE, PPC2_VSX),\
57*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x02, opc3|0x08, 0, PPC_NONE, PPC2_VSX),\
58*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x03, opc3|0x08, 0, PPC_NONE, PPC2_VSX),\
59*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x00, opc3|0x0C, 0, PPC_NONE, PPC2_VSX),\
60*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x01, opc3|0x0C, 0, PPC_NONE, PPC2_VSX),\
61*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x02, opc3|0x0C, 0, PPC_NONE, PPC2_VSX),\
62*139c1837SPaolo BonziniGEN_HANDLER2_E(name, #name, 0x3C, opc2|0x03, opc3|0x0C, 0, PPC_NONE, PPC2_VSX)
63*139c1837SPaolo Bonzini
64*139c1837SPaolo Bonzini#define GEN_VSX_XFORM_300(name, opc2, opc3, inval) \
65*139c1837SPaolo BonziniGEN_HANDLER_E(name, 0x3F, opc2, opc3, inval, PPC_NONE, PPC2_ISA300)
66*139c1837SPaolo Bonzini
67*139c1837SPaolo Bonzini#define GEN_VSX_XFORM_300_EO(name, opc2, opc3, opc4, inval)             \
68*139c1837SPaolo BonziniGEN_HANDLER_E_2(name, 0x3F, opc2, opc3, opc4, inval, PPC_NONE, PPC2_ISA300)
69*139c1837SPaolo Bonzini
70*139c1837SPaolo Bonzini#define GEN_VSX_Z23FORM_300(name, opc2, opc3, opc4, inval) \
71*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(name, opc2, opc3 | 0x00, opc4 | 0x0, inval), \
72*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(name, opc2, opc3 | 0x08, opc4 | 0x0, inval), \
73*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(name, opc2, opc3 | 0x10, opc4 | 0x0, inval), \
74*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(name, opc2, opc3 | 0x18, opc4 | 0x0, inval), \
75*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(name, opc2, opc3 | 0x00, opc4 | 0x1, inval), \
76*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(name, opc2, opc3 | 0x08, opc4 | 0x1, inval), \
77*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(name, opc2, opc3 | 0x10, opc4 | 0x1, inval), \
78*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(name, opc2, opc3 | 0x18, opc4 | 0x1, inval)
79*139c1837SPaolo Bonzini
80*139c1837SPaolo BonziniGEN_VSX_Z23FORM_300(xsrqpi, 0x05, 0x0, 0x0, 0x0),
81*139c1837SPaolo BonziniGEN_VSX_Z23FORM_300(xsrqpxp, 0x05, 0x1, 0x0, 0x0),
82*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(xssqrtqp, 0x04, 0x19, 0x1B, 0x0),
83*139c1837SPaolo BonziniGEN_VSX_XFORM_300(xssubqp, 0x04, 0x10, 0x0),
84*139c1837SPaolo Bonzini
85*139c1837SPaolo BonziniGEN_XX2FORM(xsabsdp, 0x12, 0x15, PPC2_VSX),
86*139c1837SPaolo BonziniGEN_XX2FORM(xsnabsdp, 0x12, 0x16, PPC2_VSX),
87*139c1837SPaolo BonziniGEN_XX2FORM(xsnegdp, 0x12, 0x17, PPC2_VSX),
88*139c1837SPaolo BonziniGEN_XX3FORM(xscpsgndp, 0x00, 0x16, PPC2_VSX),
89*139c1837SPaolo Bonzini
90*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(xsabsqp, 0x04, 0x19, 0x00, 0x00000001),
91*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(xsnabsqp, 0x04, 0x19, 0x08, 0x00000001),
92*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(xsnegqp, 0x04, 0x19, 0x10, 0x00000001),
93*139c1837SPaolo BonziniGEN_VSX_XFORM_300(xscpsgnqp, 0x04, 0x03, 0x00000001),
94*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(xscvdpqp, 0x04, 0x1A, 0x16, 0x00000001),
95*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(xscvqpsdz, 0x04, 0x1A, 0x19, 0x00000001),
96*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(xscvqpswz, 0x04, 0x1A, 0x09, 0x00000001),
97*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(xscvqpudz, 0x04, 0x1A, 0x11, 0x00000001),
98*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(xscvqpuwz, 0x04, 0x1A, 0x01, 0x00000001),
99*139c1837SPaolo Bonzini
100*139c1837SPaolo Bonzini#ifdef TARGET_PPC64
101*139c1837SPaolo BonziniGEN_XX2FORM_EO(xsxexpdp, 0x16, 0x15, 0x00, PPC2_ISA300),
102*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(xsxexpqp, 0x04, 0x19, 0x02, 0x00000001),
103*139c1837SPaolo BonziniGEN_XX2FORM_EO(xsxsigdp, 0x16, 0x15, 0x01, PPC2_ISA300),
104*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(xsxsigqp, 0x04, 0x19, 0x12, 0x00000001),
105*139c1837SPaolo BonziniGEN_HANDLER_E(xsiexpdp, 0x3C, 0x16, 0x1C, 0, PPC_NONE, PPC2_ISA300),
106*139c1837SPaolo BonziniGEN_VSX_XFORM_300(xsiexpqp, 0x4, 0x1B, 0x00000001),
107*139c1837SPaolo Bonzini#endif
108*139c1837SPaolo Bonzini
109*139c1837SPaolo BonziniGEN_XX3FORM(xviexpsp, 0x00, 0x1B, PPC2_ISA300),
110*139c1837SPaolo BonziniGEN_XX3FORM(xviexpdp, 0x00, 0x1F, PPC2_ISA300),
111*139c1837SPaolo BonziniGEN_XX2FORM_EO(xvxexpdp, 0x16, 0x1D, 0x00, PPC2_ISA300),
112*139c1837SPaolo BonziniGEN_XX2FORM_EO(xvxsigdp, 0x16, 0x1D, 0x01, PPC2_ISA300),
113*139c1837SPaolo BonziniGEN_XX2FORM_EO(xvxexpsp, 0x16, 0x1D, 0x08, PPC2_ISA300),
114*139c1837SPaolo Bonzini
115*139c1837SPaolo BonziniGEN_VSX_XFORM_300(xsaddqp, 0x04, 0x00, 0x0),
116*139c1837SPaolo BonziniGEN_VSX_XFORM_300(xsmulqp, 0x04, 0x01, 0x0),
117*139c1837SPaolo BonziniGEN_XX2FORM(xsredp,  0x14, 0x05, PPC2_VSX),
118*139c1837SPaolo BonziniGEN_XX2FORM(xssqrtdp,  0x16, 0x04, PPC2_VSX),
119*139c1837SPaolo BonziniGEN_XX2FORM(xsrsqrtedp,  0x14, 0x04, PPC2_VSX),
120*139c1837SPaolo BonziniGEN_XX3FORM(xstdivdp,  0x14, 0x07, PPC2_VSX),
121*139c1837SPaolo BonziniGEN_XX2FORM(xstsqrtdp,  0x14, 0x06, PPC2_VSX),
122*139c1837SPaolo BonziniGEN_XX3FORM(xscmpexpdp, 0x0C, 0x07, PPC2_ISA300),
123*139c1837SPaolo BonziniGEN_VSX_XFORM_300(xscmpexpqp, 0x04, 0x05, 0x00600001),
124*139c1837SPaolo BonziniGEN_XX2IFORM(xscmpodp,  0x0C, 0x05, PPC2_VSX),
125*139c1837SPaolo BonziniGEN_XX2IFORM(xscmpudp,  0x0C, 0x04, PPC2_VSX),
126*139c1837SPaolo BonziniGEN_VSX_XFORM_300(xscmpoqp, 0x04, 0x04, 0x00600001),
127*139c1837SPaolo BonziniGEN_VSX_XFORM_300(xscmpuqp, 0x04, 0x14, 0x00600001),
128*139c1837SPaolo BonziniGEN_XX2FORM_EO(xscvdphp, 0x16, 0x15, 0x11, PPC2_ISA300),
129*139c1837SPaolo BonziniGEN_XX2FORM(xscvdpsp, 0x12, 0x10, PPC2_VSX),
130*139c1837SPaolo BonziniGEN_XX2FORM(xscvdpspn, 0x16, 0x10, PPC2_VSX207),
131*139c1837SPaolo BonziniGEN_XX2FORM_EO(xscvhpdp, 0x16, 0x15, 0x10, PPC2_ISA300),
132*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(xscvsdqp, 0x04, 0x1A, 0x0A, 0x00000001),
133*139c1837SPaolo BonziniGEN_XX2FORM(xscvspdp, 0x12, 0x14, PPC2_VSX),
134*139c1837SPaolo BonziniGEN_XX2FORM(xscvdpsxds, 0x10, 0x15, PPC2_VSX),
135*139c1837SPaolo BonziniGEN_XX2FORM(xscvdpsxws, 0x10, 0x05, PPC2_VSX),
136*139c1837SPaolo BonziniGEN_XX2FORM(xscvdpuxds, 0x10, 0x14, PPC2_VSX),
137*139c1837SPaolo BonziniGEN_XX2FORM(xscvdpuxws, 0x10, 0x04, PPC2_VSX),
138*139c1837SPaolo BonziniGEN_XX2FORM(xscvsxddp, 0x10, 0x17, PPC2_VSX),
139*139c1837SPaolo BonziniGEN_VSX_XFORM_300_EO(xscvudqp, 0x04, 0x1A, 0x02, 0x00000001),
140*139c1837SPaolo BonziniGEN_XX2FORM(xscvuxddp, 0x10, 0x16, PPC2_VSX),
141*139c1837SPaolo BonziniGEN_XX2FORM(xsrdpi, 0x12, 0x04, PPC2_VSX),
142*139c1837SPaolo BonziniGEN_XX2FORM(xsrdpic, 0x16, 0x06, PPC2_VSX),
143*139c1837SPaolo BonziniGEN_XX2FORM(xsrdpim, 0x12, 0x07, PPC2_VSX),
144*139c1837SPaolo BonziniGEN_XX2FORM(xsrdpip, 0x12, 0x06, PPC2_VSX),
145*139c1837SPaolo BonziniGEN_XX2FORM(xsrdpiz, 0x12, 0x05, PPC2_VSX),
146*139c1837SPaolo Bonzini
147*139c1837SPaolo BonziniGEN_VSX_XFORM_300(xsdivqp, 0x04, 0x11, 0x0),
148*139c1837SPaolo BonziniGEN_XX2FORM(xsresp,  0x14, 0x01, PPC2_VSX207),
149*139c1837SPaolo BonziniGEN_XX2FORM(xsrsp, 0x12, 0x11, PPC2_VSX207),
150*139c1837SPaolo BonziniGEN_XX2FORM(xssqrtsp,  0x16, 0x00, PPC2_VSX207),
151*139c1837SPaolo BonziniGEN_XX2FORM(xsrsqrtesp,  0x14, 0x00, PPC2_VSX207),
152*139c1837SPaolo BonziniGEN_XX2FORM(xscvsxdsp, 0x10, 0x13, PPC2_VSX207),
153*139c1837SPaolo BonziniGEN_XX2FORM(xscvuxdsp, 0x10, 0x12, PPC2_VSX207),
154*139c1837SPaolo Bonzini
155*139c1837SPaolo BonziniGEN_XX2FORM(xvredp,  0x14, 0x0D, PPC2_VSX),
156*139c1837SPaolo BonziniGEN_XX2FORM(xvsqrtdp,  0x16, 0x0C, PPC2_VSX),
157*139c1837SPaolo BonziniGEN_XX2FORM(xvrsqrtedp,  0x14, 0x0C, PPC2_VSX),
158*139c1837SPaolo BonziniGEN_XX3FORM(xvtdivdp, 0x14, 0x0F, PPC2_VSX),
159*139c1837SPaolo BonziniGEN_XX2FORM(xvtsqrtdp, 0x14, 0x0E, PPC2_VSX),
160*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvmadddp, "xvmaddadp", 0x04, 0x0C, PPC2_VSX),
161*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvmadddp, "xvmaddmdp", 0x04, 0x0D, PPC2_VSX),
162*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvmsubdp, "xvmsubadp", 0x04, 0x0E, PPC2_VSX),
163*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvmsubdp, "xvmsubmdp", 0x04, 0x0F, PPC2_VSX),
164*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvnmadddp, "xvnmaddadp", 0x04, 0x1C, PPC2_VSX),
165*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvnmadddp, "xvnmaddmdp", 0x04, 0x1D, PPC2_VSX),
166*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvnmsubdp, "xvnmsubadp", 0x04, 0x1E, PPC2_VSX),
167*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvnmsubdp, "xvnmsubmdp", 0x04, 0x1F, PPC2_VSX),
168*139c1837SPaolo BonziniGEN_XX2FORM(xvcvdpsp, 0x12, 0x18, PPC2_VSX),
169*139c1837SPaolo BonziniGEN_XX2FORM(xvcvdpsxds, 0x10, 0x1D, PPC2_VSX),
170*139c1837SPaolo BonziniGEN_XX2FORM(xvcvdpsxws, 0x10, 0x0D, PPC2_VSX),
171*139c1837SPaolo BonziniGEN_XX2FORM(xvcvdpuxds, 0x10, 0x1C, PPC2_VSX),
172*139c1837SPaolo BonziniGEN_XX2FORM(xvcvdpuxws, 0x10, 0x0C, PPC2_VSX),
173*139c1837SPaolo BonziniGEN_XX2FORM(xvcvsxddp, 0x10, 0x1F, PPC2_VSX),
174*139c1837SPaolo BonziniGEN_XX2FORM(xvcvuxddp, 0x10, 0x1E, PPC2_VSX),
175*139c1837SPaolo BonziniGEN_XX2FORM(xvcvsxwdp, 0x10, 0x0F, PPC2_VSX),
176*139c1837SPaolo BonziniGEN_XX2FORM(xvcvuxwdp, 0x10, 0x0E, PPC2_VSX),
177*139c1837SPaolo BonziniGEN_XX2FORM(xvrdpi, 0x12, 0x0C, PPC2_VSX),
178*139c1837SPaolo BonziniGEN_XX2FORM(xvrdpic, 0x16, 0x0E, PPC2_VSX),
179*139c1837SPaolo BonziniGEN_XX2FORM(xvrdpim, 0x12, 0x0F, PPC2_VSX),
180*139c1837SPaolo BonziniGEN_XX2FORM(xvrdpip, 0x12, 0x0E, PPC2_VSX),
181*139c1837SPaolo BonziniGEN_XX2FORM(xvrdpiz, 0x12, 0x0D, PPC2_VSX),
182*139c1837SPaolo Bonzini
183*139c1837SPaolo BonziniGEN_XX2FORM(xvresp, 0x14, 0x09, PPC2_VSX),
184*139c1837SPaolo BonziniGEN_XX2FORM(xvsqrtsp, 0x16, 0x08, PPC2_VSX),
185*139c1837SPaolo BonziniGEN_XX2FORM(xvrsqrtesp, 0x14, 0x08, PPC2_VSX),
186*139c1837SPaolo BonziniGEN_XX3FORM(xvtdivsp, 0x14, 0x0B, PPC2_VSX),
187*139c1837SPaolo BonziniGEN_XX2FORM(xvtsqrtsp, 0x14, 0x0A, PPC2_VSX),
188*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvmaddsp, "xvmaddasp", 0x04, 0x08, PPC2_VSX),
189*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvmaddsp, "xvmaddmsp", 0x04, 0x09, PPC2_VSX),
190*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvmsubsp, "xvmsubasp", 0x04, 0x0A, PPC2_VSX),
191*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvmsubsp, "xvmsubmsp", 0x04, 0x0B, PPC2_VSX),
192*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvnmaddsp, "xvnmaddasp", 0x04, 0x18, PPC2_VSX),
193*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvnmaddsp, "xvnmaddmsp", 0x04, 0x19, PPC2_VSX),
194*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvnmsubsp, "xvnmsubasp", 0x04, 0x1A, PPC2_VSX),
195*139c1837SPaolo BonziniGEN_XX3FORM_NAME(xvnmsubsp, "xvnmsubmsp", 0x04, 0x1B, PPC2_VSX),
196*139c1837SPaolo BonziniGEN_XX2FORM(xvcvspdp, 0x12, 0x1C, PPC2_VSX),
197*139c1837SPaolo BonziniGEN_XX2FORM(xvcvspsxds, 0x10, 0x19, PPC2_VSX),
198*139c1837SPaolo BonziniGEN_XX2FORM(xvcvspsxws, 0x10, 0x09, PPC2_VSX),
199*139c1837SPaolo BonziniGEN_XX2FORM(xvcvspuxds, 0x10, 0x18, PPC2_VSX),
200*139c1837SPaolo BonziniGEN_XX2FORM(xvcvspuxws, 0x10, 0x08, PPC2_VSX),
201*139c1837SPaolo BonziniGEN_XX2FORM(xvcvsxdsp, 0x10, 0x1B, PPC2_VSX),
202*139c1837SPaolo BonziniGEN_XX2FORM(xvcvuxdsp, 0x10, 0x1A, PPC2_VSX),
203*139c1837SPaolo BonziniGEN_XX2FORM(xvcvsxwsp, 0x10, 0x0B, PPC2_VSX),
204*139c1837SPaolo BonziniGEN_XX2FORM(xvcvuxwsp, 0x10, 0x0A, PPC2_VSX),
205*139c1837SPaolo BonziniGEN_XX2FORM(xvrspi, 0x12, 0x08, PPC2_VSX),
206*139c1837SPaolo BonziniGEN_XX2FORM(xvrspic, 0x16, 0x0A, PPC2_VSX),
207*139c1837SPaolo BonziniGEN_XX2FORM(xvrspim, 0x12, 0x0B, PPC2_VSX),
208*139c1837SPaolo BonziniGEN_XX2FORM(xvrspip, 0x12, 0x0A, PPC2_VSX),
209*139c1837SPaolo BonziniGEN_XX2FORM(xvrspiz, 0x12, 0x09, PPC2_VSX),
210*139c1837SPaolo BonziniGEN_XX2FORM_EO(xxbrh, 0x16, 0x1D, 0x07, PPC2_ISA300),
211*139c1837SPaolo BonziniGEN_XX2FORM_EO(xxbrw, 0x16, 0x1D, 0x0F, PPC2_ISA300),
212*139c1837SPaolo BonziniGEN_XX2FORM_EO(xxbrd, 0x16, 0x1D, 0x17, PPC2_ISA300),
213*139c1837SPaolo BonziniGEN_XX2FORM_EO(xvcvhpsp, 0x16, 0x1D, 0x18, PPC2_ISA300),
214*139c1837SPaolo BonziniGEN_XX2FORM_EO(xvcvsphp, 0x16, 0x1D, 0x19, PPC2_ISA300),
215*139c1837SPaolo BonziniGEN_XX2FORM_EO(xxbrq, 0x16, 0x1D, 0x1F, PPC2_ISA300),
216*139c1837SPaolo Bonzini
217*139c1837SPaolo BonziniGEN_XX3FORM(xxmrghw, 0x08, 0x02, PPC2_VSX),
218*139c1837SPaolo BonziniGEN_XX3FORM(xxmrglw, 0x08, 0x06, PPC2_VSX),
219*139c1837SPaolo BonziniGEN_XX3FORM_DM(xxsldwi, 0x08, 0x00),
220