]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/notsha256: revert PPC64 removal, and fix PPC64 asm
authorPaul E. Murphy <murp@ibm.com>
Tue, 3 May 2022 13:33:42 +0000 (08:33 -0500)
committerPaul Murphy <murp@ibm.com>
Tue, 3 May 2022 20:54:41 +0000 (20:54 +0000)
commitd24c65d8bfb24b7064d49ec49b418ef273dc17f2
tree2509fb72c3fc843c510ef6b574343aae6648df6d
parent89c0dd829f49c91eb2636bc2b24df0b1cdc74a1c
cmd/internal/notsha256: revert PPC64 removal, and fix PPC64 asm

This reverts commit a41e37f56a4fc2523ac88a76bf54ba3e45dcf533, and
updates the ASM usage to be go1.8 compliant. go 1.18 added support
for using VR's in place of VSR arguments.

The following transformations are made:

  XXLOR Vx, Vx, VSy  -> XXLORQ VSx+32, VSx+32, VSy
  XXLOR VSx, VSx, Vy -> XXLORQ VSx, VSx, VSy+32

XXLOR is broken on 1.8, but XXLORQ is identical and still supported
today.

Change-Id: Icc9cd5511b412c30a14e6afd07a51839aaaf6021
Reviewed-on: https://go-review.googlesource.com/c/go/+/403734
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/internal/notsha256/sha256block_decl.go
src/cmd/internal/notsha256/sha256block_generic.go
src/cmd/internal/notsha256/sha256block_ppc64x.s [new file with mode: 0644]