|
From: | Richard Henderson |
Subject: | Re: [Qemu-devel] [PATCH v2 5/7] target/m68k: add fsglmul and fsgldiv |
Date: | Mon, 26 Jun 2017 15:57:54 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 |
On 06/26/2017 03:03 PM, Laurent Vivier wrote:
+void HELPER(fsglmul)(CPUM68KState *env, FPReg *res, FPReg *val0, FPReg *val1) +{ + floatx80 a, b; + + PREC_BEGIN(32); + a = floatx80_round(val0->d, &env->fp_status); + b = floatx80_round(val1->d, &env->fp_status); + res->d = floatx80_mul(a, b, &env->fp_status); + PREC_END(); +} +
You need to set the rounding mode to truncate for the first two operations. r~
[Prev in Thread] | Current Thread | [Next in Thread] |