Skip to content
Commit adc71666 authored by Aurelien Jarno's avatar Aurelien Jarno
Browse files

target-i386: fix round{pd,ps,sd,ss} SSE2 instructions



roundps and roundss SSE2 instructions have been broken when switching
target-i386 to softfloat. They use float64_round_to_int to convert a
float32, and while the implicit conversion from float32 to float64 was
correct for softfloat-native, it is not for pure softfloat. Fix that by
using the correct registers and correct functions.

Also fix roundpd and roundsd implementation at the same time, even if
these functions are behaving correctly.

Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
parent a4d1f142
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment