Re: [PATCH 4/4] target/i386: implement FMA instructions

2022-10-20 Thread Paolo Bonzini
On 10/20/22 05:02, Richard Henderson wrote: On 10/20/22 01:06, Paolo Bonzini wrote: The only issue with FMA instructions is that there are _a lot_ of them (30 opcodes, each of which comes in up to 4 versions depending on VEX.W and VEX.L). We can reduce the number of helpers to one third by pass

Re: [PATCH 4/4] target/i386: implement FMA instructions

2022-10-19 Thread Richard Henderson
On 10/20/22 01:06, Paolo Bonzini wrote: The only issue with FMA instructions is that there are _a lot_ of them (30 opcodes, each of which comes in up to 4 versions depending on VEX.W and VEX.L). We can reduce the number of helpers to one third by passing four operands (one output and three input

[PATCH 4/4] target/i386: implement FMA instructions

2022-10-19 Thread Paolo Bonzini
The only issue with FMA instructions is that there are _a lot_ of them (30 opcodes, each of which comes in up to 4 versions depending on VEX.W and VEX.L). We can reduce the number of helpers to one third by passing four operands (one output and three inputs); the reordering of which operands go to