diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-10-03 00:03:35 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-10-03 00:03:35 +0000 |
commit | b3c77578dc408e024f1a38edfb03f3fb78bb11b6 (patch) | |
tree | 4ba9507e2a79a3bd6f060ef7a043b0b5f6674dbd /sim/tic80/misc.c | |
parent | 22b23d7deb39bb03d49a7b07f012b86269054ad2 (diff) | |
download | gdb-b3c77578dc408e024f1a38edfb03f3fb78bb11b6.zip gdb-b3c77578dc408e024f1a38edfb03f3fb78bb11b6.tar.gz gdb-b3c77578dc408e024f1a38edfb03f3fb78bb11b6.tar.bz2 |
Rewrite simulator floating point module. Do not rely on host FP
implementation. Add preliminary support for different IEEE-754
rounding modes. Implement SQRT in software.
Update TiC80 simulator.
Add sim-fpu -> TestFloat interface for testing.
Diffstat (limited to 'sim/tic80/misc.c')
-rw-r--r-- | sim/tic80/misc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sim/tic80/misc.c b/sim/tic80/misc.c index a741c48..beb0c68 100644 --- a/sim/tic80/misc.c +++ b/sim/tic80/misc.c @@ -241,9 +241,9 @@ tic80_trace_fpu3 (SIM_DESC sd, itable[indx].file, itable[indx].line_nr, "fpu", "%-*s %*g %*g => %*g", tic80_size_name, itable[indx].name, - SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (input1), - SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (input2), - SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (result)); + SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (&input1), + SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (&input2), + SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (&result)); } /* Trace the result of an FPU operation with 1 floating point input and a floating point output */ @@ -262,9 +262,9 @@ tic80_trace_fpu2 (SIM_DESC sd, itable[indx].file, itable[indx].line_nr, "fpu", "%-*s %*g %-*s => %*g", tic80_size_name, itable[indx].name, - SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (input), + SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (&input), SIZE_HEX + SIZE_DECIMAL + 3, "", - SIZE_HEX + SIZE_DECIMAL, sim_fpu_2d (result)); + SIZE_HEX + SIZE_DECIMAL, sim_fpu_2d (&result)); } /* Trace the result of an FPU operation with 1 floating point input and a floating point output */ @@ -284,7 +284,7 @@ tic80_trace_fpu1 (SIM_DESC sd, tic80_size_name, itable[indx].name, SIZE_HEX + SIZE_DECIMAL + 3, "", SIZE_HEX + SIZE_DECIMAL + 3, "", - SIZE_HEX + SIZE_DECIMAL, sim_fpu_2d (result)); + SIZE_HEX + SIZE_DECIMAL, sim_fpu_2d (&result)); } /* Trace the result of an FPU operation with 1 integer input and an integer output */ @@ -304,8 +304,8 @@ tic80_trace_fpu2i (SIM_DESC sd, itable[indx].file, itable[indx].line_nr, "fpu", "%-*s %*f %*f => 0x%.*lx %-*ld", tic80_size_name, itable[indx].name, - SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (input1), - SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (input2), + SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (&input1), + SIZE_HEX + SIZE_DECIMAL + 3, sim_fpu_2d (&input2), SIZE_HEX, result, SIZE_DECIMAL, (long)(signed32)result); } |