Commit bd6f4cd8 authored by Joel Sing's avatar Joel Sing
Browse files

cmd/compile: improve subtraction of constants on riscv64

Convert subtraction of a constant into an ADDI with a negative immediate,
where possible.

Change-Id: Ie8d54b7538f0012e5f898abea233b2957fe31899
Reviewed-on: https://go-review.googlesource.com/c/go/+/221679


Reviewed-by: default avatarCherry Zhang <cherryyz@google.com>
parent 52b457d6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment