Add a negation instruction

Necessary for floating-point negation, because
`%result = sub 0, %operand` doesn't give the correct sign for 0/-0.
This commit is contained in:
Eyal Sawady 2022-01-17 22:00:48 +00:00 committed by Quentin Carbonneaux
parent 367c8215d9
commit e91d121581
8 changed files with 28 additions and 13 deletions

View file

@ -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)`