diff options
author | David Chase <drchase@google.com> | 2021-03-07 14:00:10 -0500 |
---|---|---|
committer | David Chase <drchase@google.com> | 2021-03-09 18:45:05 +0000 |
commit | 382851c1fd135a99efbe128a3be0ce466d42506f (patch) | |
tree | 63e138e97306bfdaffc642677aaffc595d87602f /src/cmd/compile/internal/ssa/value.go | |
parent | 9f5298ca6e7fc9c46c0a82bd7be39450ec48dcb5 (diff) | |
download | go-382851c1fd135a99efbe128a3be0ce466d42506f.tar.gz go-382851c1fd135a99efbe128a3be0ce466d42506f.zip |
cmd/compile: fix failure to communicate between ABIinfo producer&consumer
ABI info producer and consumer had different ideas for register
order for parameters.
Includes a test, includes improvements to debugging output.
Updates #44816.
Change-Id: I4812976f7a6c08d6fc02aac1ec0544b1f141cca6
Reviewed-on: https://go-review.googlesource.com/c/go/+/299570
Trust: David Chase <drchase@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/value.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/value.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/compile/internal/ssa/value.go b/src/cmd/compile/internal/ssa/value.go index 6cc2b2ab8b..5a9779dd1e 100644 --- a/src/cmd/compile/internal/ssa/value.go +++ b/src/cmd/compile/internal/ssa/value.go @@ -198,12 +198,12 @@ func (v *Value) auxString() string { if v.Aux != nil { return fmt.Sprintf(" {%v}", v.Aux) } - case auxSymOff, auxCallOff, auxTypSize: + case auxSymOff, auxCallOff, auxTypSize, auxNameOffsetInt8: s := "" if v.Aux != nil { s = fmt.Sprintf(" {%v}", v.Aux) } - if v.AuxInt != 0 { + if v.AuxInt != 0 || opcodeTable[v.Op].auxType == auxNameOffsetInt8 { s += fmt.Sprintf(" [%v]", v.AuxInt) } return s |