mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: switch to typed auxint for arm64 TBZ/TBNZ block
This CL changes the arm64 TBZ/TBNZ block from using Aux to using a (typed) AuxInt. The corresponding rules have also been changed to be typed. Passes GOARCH=arm64 gotip build -toolexec 'toolstash -cmp' -a std Change-Id: I98d0cd2a791948f1db13259c17fb1b9b2807a043 Reviewed-on: https://go-review.googlesource.com/c/go/+/230839 Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
9ed0fb42e3
commit
666c9aedd4
7 changed files with 61 additions and 56 deletions
|
|
@ -691,12 +691,12 @@ func init() {
|
|||
{name: "ULE", controls: 1},
|
||||
{name: "UGT", controls: 1},
|
||||
{name: "UGE", controls: 1},
|
||||
{name: "Z", controls: 1}, // Control == 0 (take a register instead of flags)
|
||||
{name: "NZ", controls: 1}, // Control != 0
|
||||
{name: "ZW", controls: 1}, // Control == 0, 32-bit
|
||||
{name: "NZW", controls: 1}, // Control != 0, 32-bit
|
||||
{name: "TBZ", controls: 1}, // Control & (1 << Aux.(int64)) == 0
|
||||
{name: "TBNZ", controls: 1}, // Control & (1 << Aux.(int64)) != 0
|
||||
{name: "Z", controls: 1}, // Control == 0 (take a register instead of flags)
|
||||
{name: "NZ", controls: 1}, // Control != 0
|
||||
{name: "ZW", controls: 1}, // Control == 0, 32-bit
|
||||
{name: "NZW", controls: 1}, // Control != 0, 32-bit
|
||||
{name: "TBZ", controls: 1, aux: "Int64"}, // Control & (1 << AuxInt) == 0
|
||||
{name: "TBNZ", controls: 1, aux: "Int64"}, // Control & (1 << AuxInt) != 0
|
||||
{name: "FLT", controls: 1},
|
||||
{name: "FLE", controls: 1},
|
||||
{name: "FGT", controls: 1},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue