When emitting the code to handle x / -1 on amd64, we should use the size-appropriate negation operation. For example, NEGL for DIVL.
This probably also means using NEGW for DIVW, which might also apply to the 386 backend?
Fixing this should allow reverting https://go-review.googlesource.com/c/go/+/85736. See also #23305.
/cc @TocarIP @cherrymui
When emitting the code to handle
x / -1on amd64, we should use the size-appropriate negation operation. For example, NEGL for DIVL.This probably also means using NEGW for DIVW, which might also apply to the 386 backend?
Fixing this should allow reverting https://go-review.googlesource.com/c/go/+/85736. See also #23305.
/cc @TocarIP @cherrymui