From e91d12158122b23271ff49de8977c92fef7f3908 Mon Sep 17 00:00:00 2001 From: Eyal Sawady Date: Mon, 17 Jan 2022 22:00:48 +0000 Subject: Add a negation instruction Necessary for floating-point negation, because `%result = sub 0, %operand` doesn't give the correct sign for 0/-0. --- doc/il.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/il.txt') diff --git a/doc/il.txt b/doc/il.txt index 87a4d9f..48ecb23 100644 --- a/doc/il.txt +++ b/doc/il.txt @@ -524,6 +524,7 @@ return type used is long, the argument must be of type double. ~~~~~~~~~~~~~~~~~~~~~ * `add`, `sub`, `div`, `mul` -- `T(T,T)` + * `neg` -- `T(T)` * `udiv`, `rem`, `urem` -- `I(I,I)` * `or`, `xor`, `and` -- `I(I,I)` * `sar`, `shr`, `shl` -- `I(I,ww)` -- cgit 1.4.1