Files
iverilog/vvp
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 <[email protected]>
2026-06-22 07:43:02 -07:00
..
2026-01-05 18:59:08 -08:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2026-01-05 18:59:08 -08:00
2026-01-19 19:50:10 -08:00
2022-06-20 22:59:12 +02:00
2026-01-19 19:50:10 -08:00
2025-11-23 01:31:14 -08:00
2016-02-03 22:25:57 -08:00
2026-06-22 07:43:02 -07:00
2026-05-21 05:21:35 -07:00
2025-11-23 01:31:14 -08:00
2026-05-10 14:47:40 -07:00
2026-05-21 05:21:35 -07:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2015-10-02 09:43:54 -07:00
2025-11-23 01:31:14 -08:00
2025-10-20 23:54:15 -07:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2026-01-05 18:59:08 -08:00
2024-12-31 13:05:36 +00:00
2025-11-23 01:31:14 -08:00
2026-01-13 02:04:37 -08:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2012-08-29 10:12:10 -07:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2012-08-29 10:12:10 -07:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2026-01-19 19:50:10 -08:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2025-10-20 23:54:15 -07:00
2026-01-05 18:59:08 -08:00
2025-10-20 23:54:15 -07:00
2012-08-30 19:33:25 -07:00
2025-10-20 23:54:15 -07:00
2025-10-20 23:54:15 -07:00
2025-10-20 23:54:15 -07:00
2025-11-23 01:31:14 -08:00
2025-10-20 23:54:15 -07:00
2012-08-29 10:12:10 -07:00
2026-05-21 05:21:35 -07:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2025-11-23 01:31:14 -08:00
2026-05-21 05:21:35 -07:00
2025-10-20 23:54:15 -07:00
2026-01-19 19:50:10 -08:00
2025-10-20 23:54:15 -07:00