From 8ab3658c8517294dab8fde65934fbdeccbe6efac Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Fri, 28 Jul 2023 14:20:26 -0700 Subject: [PATCH] tcg/i386: Support fmul with unique out,in0,in1 --- tcg/i386/tcg-target.c.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tcg/i386/tcg-target.c.inc b/tcg/i386/tcg-target.c.inc index 01c0295c64..81d315474e 100644 --- a/tcg/i386/tcg-target.c.inc +++ b/tcg/i386/tcg-target.c.inc @@ -2596,8 +2596,11 @@ static inline void tcg_out_op(TCGContext *s, TCGOpcode opc, } else if (a0 == a2) { tcg_out_modrm(s, mopc, a0, a1); } else { - /* FIXME: Handle 3 unique operand variant (AVX,reg,stack) */ - assert(0); + tcg_out_stash_xmm(s, a1); + tcg_out_modrm(s, mopc, a1, a2); + tcg_out_mov(s, dp ? TCG_TYPE_F64 : TCG_TYPE_F32, a0, a1); + tcg_out_unstash_xmm(s, a1); + /* FIXME: AVX,reg,stack */ } break; }