Skip to content

Commit

Permalink
internal/sm2ec: ppc64le, guess stack offset
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Sep 3, 2024
1 parent e1b60fe commit c88486e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/sm2ec/p256_asm_ppc64le.s
Original file line number Diff line number Diff line change
Expand Up @@ -2025,8 +2025,7 @@ TEXT ·p256PointAddAffineAsm(SB), NOSPLIT, $0
XXPERMDI Z1H, Z1H, $2, Z1H
XXPERMDI Z1L, Z1L, $2, Z1L

MOVD $112, R26 // Get offset to sel+32
LXVDSX (R1)(R26), SEL1
LXVDSX (R1)(R21), SEL1 // Get offset to sel+32
VSPLTISB $0, ZER
VCMPEQUD SEL1, ZER, SEL1

Expand All @@ -2047,7 +2046,7 @@ TEXT ·p256PointAddAffineAsm(SB), NOSPLIT, $0
LXVD2X (R19)(CPOOL), Z2L
LXVD2X (R20)(CPOOL), Z2H

LXVDSX (R1)(R21), SEL1 // Get the value from zero+40(FP)
LXVDSX (R1)(R22), SEL1 // Get the value from zero+40(FP)
VSPLTISB $0, ZER
VCMPEQUD SEL1, ZER, SEL1

Expand Down

1 comment on commit c88486e

@emmansun
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

加32或者64,和参数个数有关?

Please sign in to comment.