mir icon indicating copy to clipboard operation
mir copied to clipboard

Missing `MVN`/`NOT` instruction

Open giann opened this issue 2 years ago • 2 comments

There's not bitwise MIR_NOT instruction

giann avatar Mar 03 '23 09:03 giann

Maybe it's intended? I guess i can do: MIR_XOR value, 0xffff

giann avatar Mar 03 '23 10:03 giann

yeah you can compliment it with a XOR with FFs (I recommend using ~0 to not make mistakes). Even if intended I personally think it would be better to have it for completeness (even if the code gen can handle it)

Itay2805 avatar Mar 03 '23 10:03 Itay2805