André Braga wrote:
On 10/16/06, Tom Marn wrote:
cast test 1 - float: 85.745110 [0x42ab7d7f] -> integer: 85 [0x0055]
cast test 2 - float: 85.745110 [0x42ab7d7f] -> integer: 57005
[0xdead] <-- 85 is correct
Am I the only one who found this result EXTREMELY amusing? :D
Thanks André
T
On 10/16/06, Tom Marn <[EMAIL PROTECTED]> wrote:
cast test 1 - float: 85.745110 [0x42ab7d7f] -> integer: 85 [0x0055]
cast test 2 - float: 85.745110 [0x42ab7d7f] -> integer: 57005 [0xdead] <--
85 is correct
Am I the only one who found this result EXTREMELY amusing? :D
Please use last attached patch for stfiwx implementation and demonstration of
cast problem. Instruction stfiwx is used when casting from float point to
integer is needed.
I'm having problems with proper evaluation of values at the line (in cast_ftoi.c) where
casting from float to integer accur
Hi
Resending fixed patch, mirror fix in glue(stfi, MEMSUFFIX) function; bitwise typo:
&& instead of &.
Tom Marn
Patch which appends optional "stfiwx" PowerPC instruction into QEMU.
Mirror fix of patch: 2006-10-11 : bitwise typo && instead &
Tom Marn
--- target-ppc/translate.c.orig 2006-10-11 0
Hi
This is the patch which appends optional "stfiwx" PowerPC instruction into QEMU. For
demonstration purpose you can use attached stfiwx_cast.c code. But i'm still having problems with
"gen_op_load_fpr_FT1(rS(ctx->opcode));" macro which loads fpr[rS(ctx->opcode] into
internal FT1 register. Wh