]> git.proxmox.com Git - qemu.git/commit
target-i386: fix round{pd,ps,sd,ss} SSE2 instructions
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 7 Jan 2012 14:20:11 +0000 (15:20 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 11 Jan 2012 08:55:28 +0000 (09:55 +0100)
commitadc7166611ed7240434b60b915f4c116c4c70820
tree2e0f3eb0ee76d6cbb6a91c2e9cf0cd04108fd28b
parenta4d1f142542935b90d2eb30f3aead4edcf455fe6
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: Aurelien Jarno <aurelien@aurel32.net>
target-i386/ops_sse.h