Integer negate has a redundant zero when expressed as 0-n instead of n*-1: ``` 0x1e381ef2b084 52800001 mov w1, #0x0 0x1e381ef2b088 4b000020 sub w0, w1, w0 ``` We probably want to handle this case during lowering and generate an LNegI node (we should do this cross-platform; x86/x64 have the same problem), and we want to check that a redundant zero is not being generated in this case.
Bug 1710087 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Integer negate has a redundant zero when expressed as 0-n instead of n*-1: ``` 0x1e381ef2b084 52800001 mov w1, #0x0 0x1e381ef2b088 4b000020 sub w0, w1, w0 ``` We probably want to handle this case during lowering and generate an LNegI node (we should do this cross-platform; x86/x64 have the same problem), and we want to check that a redundant zero is not being generated in this case. (Addressed in bug 1710403.)