aboutsummaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
authorJayanth Krishnamurthy <jayanth.krishnamurthy@ibm.com>2024-05-14 02:00:09 -0500
committerLynn Boger <laboger@linux.vnet.ibm.com>2024-05-20 18:05:32 +0000
commitf726c8d0fdd33331d599548b90a7d488ca5324c1 (patch)
tree9c744611d3d23fdf7cf621ce95f9e17b4c89541f /src/math
parent2b0f2f8169bed01e3bf72d49863cd2852bdf7c7e (diff)
downloadgo-f726c8d0fdd33331d599548b90a7d488ca5324c1.tar.xz
ppc64x: code cleanup in assembly files
Replacing Branch Conditional (BC) with its extended mnemonic form of BDNZ and BDZ. - BC 16, 0, target can be replaced by BDNZ target - BC 18, 0, target can be replaced by BDZ target Change-Id: I1259e207f2a40d0b72780d5421f7449ddc006dc5 Cq-Include-Trybots: luci.golang.try:gotip-linux-ppc64_power10,gotip-linux-ppc64_power8,gotip-linux-ppc64le_power8,gotip-linux-ppc64le_power9,gotip-linux-ppc64le_power10 Reviewed-on: https://go-review.googlesource.com/c/go/+/585077 Reviewed-by: Carlos Amedee <carlos@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'src/math')
-rw-r--r--src/math/big/arith_ppc64x.s10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/math/big/arith_ppc64x.s b/src/math/big/arith_ppc64x.s
index 330bc7e46c..5e7a2da3a3 100644
--- a/src/math/big/arith_ppc64x.s
+++ b/src/math/big/arith_ppc64x.s
@@ -62,7 +62,7 @@ loop:
MOVD R22, 24(R10) // z[i+2]
MOVDU R23, 32(R10) // z[i+3]
ADD $-4, R7 // R7 = z_len - 4
- BC 16, 0, loop // bdnz
+ BDNZ loop
// We may have more elements to read
CMP R0, R7
@@ -151,7 +151,7 @@ loop:
MOVD R22, 24(R10) // z[i+2]
MOVDU R23, 32(R10) // z[i+3]
ADD $-4, R7 // R7 = z_len - 4
- BC 16, 0, loop // bdnz
+ BDNZ loop
// We may have more elements to read
CMP R0, R7
@@ -230,7 +230,7 @@ loop:
MOVD R26, 24(R10) // z[i+2]
MOVDU R27, 32(R10) // z[i+3]
ADD $-4, R11 // R11 = z_len - 4
- BC 16, 0, loop // bdnz
+ BDNZ loop
// We may have some elements to read
CMP R0, R11
@@ -307,7 +307,7 @@ loop:
MOVD R22, 24(R10)
MOVDU R23, 32(R10)
ADD $-4, R11
- BC 16, 0, loop // bdnz
+ BDNZ loop
// We may have some elements to read
CMP R0, R11
@@ -550,7 +550,7 @@ loop:
MOVD R26, 24(R10) // z[i+2]
MOVDU R27, 32(R10) // z[i+3]
ADD $-4, R11 // R11 = z_len - 4
- BC 16, 0, loop // bdnz
+ BDNZ loop
// We may have some elements to read
CMP R0, R11