mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
target/sparc: Use i128 for FqTOs, FqTOi
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Message-Id: <20231103173841.33651-9-richard.henderson@linaro.org>
This commit is contained in:
parent
16bedf89c1
commit
d81e3efed9
3 changed files with 10 additions and 9 deletions
|
@ -180,9 +180,9 @@ float64 helper_fstod(CPUSPARCState *env, float32 src)
|
|||
return float32_to_float64(src, &env->fp_status);
|
||||
}
|
||||
|
||||
float32 helper_fqtos(CPUSPARCState *env)
|
||||
float32 helper_fqtos(CPUSPARCState *env, Int128 src)
|
||||
{
|
||||
return float128_to_float32(QT1, &env->fp_status);
|
||||
return float128_to_float32(f128_in(src), &env->fp_status);
|
||||
}
|
||||
|
||||
void helper_fstoq(CPUSPARCState *env, float32 src)
|
||||
|
@ -211,9 +211,9 @@ int32_t helper_fdtoi(CPUSPARCState *env, float64 src)
|
|||
return float64_to_int32_round_to_zero(src, &env->fp_status);
|
||||
}
|
||||
|
||||
int32_t helper_fqtoi(CPUSPARCState *env)
|
||||
int32_t helper_fqtoi(CPUSPARCState *env, Int128 src)
|
||||
{
|
||||
return float128_to_int32_round_to_zero(QT1, &env->fp_status);
|
||||
return float128_to_int32_round_to_zero(f128_in(src), &env->fp_status);
|
||||
}
|
||||
|
||||
#ifdef TARGET_SPARC64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue