diff options
| author | Paul E. Murphy <murp@ibm.com> | 2022-07-07 14:26:31 -0500 |
|---|---|---|
| committer | Paul Murphy <murp@ibm.com> | 2022-11-16 20:18:50 +0000 |
| commit | e6eaf39cfaf253ebaff7fff3737f0f1d91024345 (patch) | |
| tree | 3a1ca298f2dcbeb54c165f811f3a1107dfef2d19 /src/cmd/asm | |
| parent | cd9d26f0da769c5644ab7956433991385259ee0a (diff) | |
| download | go-e6eaf39cfaf253ebaff7fff3737f0f1d91024345.tar.xz | |
cmd/internal/obj/ppc64: add ISA 3.1B opcodes
A few new opcodes are added to support ROP mitigation on
Power10.
Change-Id: I13045aebc0b6fb09c64dc234ee5741318670d7ff
Reviewed-on: https://go-review.googlesource.com/c/go/+/425597
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: Joedian Reid <joedian@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/cmd/asm')
| -rw-r--r-- | src/cmd/asm/internal/asm/testdata/ppc64_p10.s | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cmd/asm/internal/asm/testdata/ppc64_p10.s b/src/cmd/asm/internal/asm/testdata/ppc64_p10.s index 4573ecba3a..c0a22aaca1 100644 --- a/src/cmd/asm/internal/asm/testdata/ppc64_p10.s +++ b/src/cmd/asm/internal/asm/testdata/ppc64_p10.s @@ -263,4 +263,11 @@ TEXT asmtest(SB), DUPOK|NOSPLIT, $0 XXSPLTI32DX $1, $1234, VS3 // 05000000806204d2 XXSPLTIDP $12345678, VS4 // 050000bc8084614e XXSPLTIW $123456, VS3 // 050000018066e240 + + // ISA 3.1B + HASHST R2, -8(R1) // 7fe115a5 + HASHSTP R2, -8(R1) // 7fe11525 + HASHCHK -8(R1), R2 // 7fe115e5 + HASHCHKP -8(R1), R2 // 7fe11565 + RET |
