mirror of
https://github.com/golang/go.git
synced 2025-11-02 09:40:56 +00:00
cmd/internal/obj/x86: fix PINSRD with mem in from3
Change-Id: I3a2b17e218aa05cfb67d7561e0b52a6df766924d Reviewed-on: https://go-review.googlesource.com/6897 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
b66a509992
commit
29f18f2800
1 changed files with 7 additions and 0 deletions
|
|
@ -609,6 +609,13 @@ func preprocess(ctxt *obj.Link, cursym *obj.LSym) {
|
||||||
if a == obj.NAME_PARAM {
|
if a == obj.NAME_PARAM {
|
||||||
p.From.Offset += int64(deltasp) + int64(pcsize)
|
p.From.Offset += int64(deltasp) + int64(pcsize)
|
||||||
}
|
}
|
||||||
|
a = int(p.From3.Name)
|
||||||
|
if a == obj.NAME_AUTO {
|
||||||
|
p.From3.Offset += int64(deltasp) - int64(bpsize)
|
||||||
|
}
|
||||||
|
if a == obj.NAME_PARAM {
|
||||||
|
p.From3.Offset += int64(deltasp) + int64(pcsize)
|
||||||
|
}
|
||||||
a = int(p.To.Name)
|
a = int(p.To.Name)
|
||||||
if a == obj.NAME_AUTO {
|
if a == obj.NAME_AUTO {
|
||||||
p.To.Offset += int64(deltasp) - int64(bpsize)
|
p.To.Offset += int64(deltasp) - int64(bpsize)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue