aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ppc64
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2020-04-09 20:28:55 -0700
committerKeith Randall <khr@golang.org>2020-04-10 16:24:46 +0000
commitea7126fe141879e1065d196570c078fbec09f3b6 (patch)
tree8c73bed3871361770339060d9a711ee6ff97f35b /src/cmd/compile/internal/ppc64
parent782fcb44b96753e6e763be91a72bcbfc3dff7ab9 (diff)
downloadgo-ea7126fe141879e1065d196570c078fbec09f3b6.tar.gz
go-ea7126fe141879e1065d196570c078fbec09f3b6.zip
cmd/compile: use a Sym type instead of interface{} for symbolic offsets
Will help with strongly typed rewrite rules. Change-Id: Ifbf316a49f4081322b3b8f13bc962713437d9aba Reviewed-on: https://go-review.googlesource.com/c/go/+/227785 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Diffstat (limited to 'src/cmd/compile/internal/ppc64')
-rw-r--r--src/cmd/compile/internal/ppc64/ssa.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/cmd/compile/internal/ppc64/ssa.go b/src/cmd/compile/internal/ppc64/ssa.go
index 50f595fe2f..efb940b7d9 100644
--- a/src/cmd/compile/internal/ppc64/ssa.go
+++ b/src/cmd/compile/internal/ppc64/ssa.go
@@ -654,15 +654,8 @@ func ssaGenValue(s *gc.SSAGenState, v *ssa.Value) {
case ssa.OpPPC64ANDCCconst:
p := s.Prog(v.Op.Asm())
p.Reg = v.Args[0].Reg()
-
- if v.Aux != nil {
- p.From.Type = obj.TYPE_CONST
- p.From.Offset = gc.AuxOffset(v)
- } else {
- p.From.Type = obj.TYPE_CONST
- p.From.Offset = v.AuxInt
- }
-
+ p.From.Type = obj.TYPE_CONST
+ p.From.Offset = v.AuxInt
p.To.Type = obj.TYPE_REG
p.To.Reg = ppc64.REGTMP // discard result