iverilog/Documentation/developer
Lars-Peter Clausen 5311c0cd38 vvp: Add opcode for unary real minus
Currently the vvp target emits unary real minus as `0.0 - value`.
This is not the same operation for all real values. It loses the
negative zero result for `-(+0.0)` and does not reliably flip the sign
bit for NaN values whose bits are visible through `$realtobits`.

Add `%neg/wr` and use it for unary real minus. This performs a direct
negation of the real stack value, so zero, NaN and infinity all use the
same operation as unary minus instead of a binary subtraction from zero.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2026-06-22 07:43:02 -07:00
..
guide vvp: Add opcode for unary real minus 2026-06-22 07:43:02 -07:00
getting_started.rst Update the development documentation to match reality 2026-02-28 07:06:01 -08:00
glossary.rst Move textfiles to documentation 2023-06-09 13:30:44 +02:00
index.rst Move textfiles to documentation 2023-06-09 13:30:44 +02:00
regression_tests.rst Update the development documentation to match reality 2026-02-28 07:06:01 -08:00
version_stamps.rst Update documentation to clarify that 'version.exe' is no longer used 2026-04-30 09:11:21 +02:00