]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/ppc64: fix PCALIGN on ppc64le
authorLynn Boger <laboger@linux.vnet.ibm.com>
Tue, 17 Mar 2020 13:24:47 +0000 (09:24 -0400)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Tue, 24 Mar 2020 20:55:08 +0000 (20:55 +0000)
commit60a964ea45db28eb7a4ca291008473da7d3d2c70
tree39eacbe67869fbcdab4369632b20c2bbb237077a
parent191118a8213d486389763afe31be0d2dd3f9ed6a
cmd/internal/obj/ppc64: fix PCALIGN on ppc64le

This fixes a potential issue with the previous implementation
of PCALIGN on ppc64. Previously PCALIGN was processed inside of
asmout and indicated the padding size by setting the value in
the optab, changing it back after the alignment instructions
were added. Now PCALIGN is processed outside of asmout, and optab
is not changed.

Change-Id: I8b0093a0e2b7e06176af27e05150d04ae2c55d60
Reviewed-on: https://go-review.googlesource.com/c/go/+/225198
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/internal/obj/ppc64/asm9.go
src/cmd/internal/obj/ppc64/asm_test.go [new file with mode: 0644]