aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ssa/opGen.go
diff options
context:
space:
mode:
authorAlberto Donizetti <alb.donizetti@gmail.com>2020-04-30 11:04:02 +0200
committerAlberto Donizetti <alb.donizetti@gmail.com>2020-04-30 17:30:54 +0000
commit666c9aedd40853e2fc84bbd743b13cb267007ac2 (patch)
tree43bc80fcf6ac0fa490a69c770ec58996f45032de /src/cmd/compile/internal/ssa/opGen.go
parent9ed0fb42e34ff64dd6447572d8bc9dbb05ddb552 (diff)
downloadgo-666c9aedd40853e2fc84bbd743b13cb267007ac2.tar.gz
go-666c9aedd40853e2fc84bbd743b13cb267007ac2.zip
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>
Diffstat (limited to 'src/cmd/compile/internal/ssa/opGen.go')
-rw-r--r--src/cmd/compile/internal/ssa/opGen.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ssa/opGen.go b/src/cmd/compile/internal/ssa/opGen.go
index 3185f34fa5..d619f36cf5 100644
--- a/src/cmd/compile/internal/ssa/opGen.go
+++ b/src/cmd/compile/internal/ssa/opGen.go
@@ -277,6 +277,10 @@ var blockString = [...]string{
func (k BlockKind) String() string { return blockString[k] }
func (k BlockKind) AuxIntType() string {
switch k {
+ case BlockARM64TBZ:
+ return "int64"
+ case BlockARM64TBNZ:
+ return "int64"
case BlockS390XCIJ:
return "int8"
case BlockS390XCGIJ: