diff --git a/tests/fpu/fpu.c b/tests/fpu/fpu.c index 52f21d0..500e92d 100644 --- a/tests/fpu/fpu.c +++ b/tests/fpu/fpu.c @@ -106,9 +106,11 @@ int fooiw; int do_fp_op(long arg) { + unsigned long tmp; + switch (arg) { case 0: - asm("lfd 31,0(%0)" : : "b" (&foo)); + asm("ld %0,0(%1); lfd 31,0(%1)" : "=&r" (tmp) : "b" (&foo)); break; case 1: asm("stfd 31,0(%0)" : : "b" (&foow) : "memory"); diff --git a/tests/test_fpu.bin b/tests/test_fpu.bin index 50831cb..dee8fbd 100755 Binary files a/tests/test_fpu.bin and b/tests/test_fpu.bin differ