diff options
author | Paul E. Murphy <murp@ibm.com> | 2023-10-18 13:42:25 -0500 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-10-19 00:40:54 +0000 |
commit | 1c5862cc0afada6ef0c07687ce4bf951ed9dd798 (patch) | |
tree | b57d8402f1d1ba7cd7fb8c8d6ce99f2500c914ca /test/codegen | |
parent | 3803c858800b90fb8ae1669a3ac1f337be45f886 (diff) | |
download | go-1c5862cc0afada6ef0c07687ce4bf951ed9dd798.tar.gz go-1c5862cc0afada6ef0c07687ce4bf951ed9dd798.zip |
test/codegen: fix PPC64 AddLargeConst test
Commit 061d77cb70 was published in parallel with another commit
36ecff0893 which changed how certain constants were generated.
Update the test to account for the changes.
Change-Id: I314b735a34857efa02392b7a0dd9fd634e4ee428
Reviewed-on: https://go-review.googlesource.com/c/go/+/536256
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Paul Murphy <murp@ibm.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'test/codegen')
-rw-r--r-- | test/codegen/arithmetic.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/codegen/arithmetic.go b/test/codegen/arithmetic.go index 0d6d969000..174c2dbcc9 100644 --- a/test/codegen/arithmetic.go +++ b/test/codegen/arithmetic.go @@ -16,12 +16,12 @@ package codegen func AddLargeConst(a uint64, out []uint64) { // ppc64x/power10:"ADD\t[$]4294967296," - // ppc64x/power9:"MOVD\t[$]i64.0000000100000000[(]SB[)]", "ADD\tR[0-9]*" - // ppc64x/power8:"MOVD\t[$]i64.0000000100000000[(]SB[)]", "ADD\tR[0-9]*" + // ppc64x/power9:"MOVD\t[$]1", "SLD\t[$]32" "ADD\tR[0-9]*" + // ppc64x/power8:"MOVD\t[$]1", "SLD\t[$]32" "ADD\tR[0-9]*" out[0] = a + 0x100000000 // ppc64x/power10:"ADD\t[$]-8589934592," - // ppc64x/power9:"MOVD\t[$]i64.fffffffe00000000[(]SB[)]", "ADD\tR[0-9]*" - // ppc64x/power8:"MOVD\t[$]i64.fffffffe00000000[(]SB[)]", "ADD\tR[0-9]*" + // ppc64x/power9:"MOVD\t[$]-1", "SLD\t[$]33" "ADD\tR[0-9]*" + // ppc64x/power8:"MOVD\t[$]-1", "SLD\t[$]33" "ADD\tR[0-9]*" out[1] = a + 0xFFFFFFFE00000000 } |