Skip to content

Commit

Permalink
internal/sm2ec: ppc64le, change to use VMULUWM as WMLF
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Aug 29, 2024
1 parent 79efc65 commit 68f37d7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions internal/sm2ec/p256_asm_ppc64le.s
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ TEXT sm2p256OrdMulInternal<>(SB), NOSPLIT, $0

// VMLF ADD1, K0, MK0
// VREPF $3, MK0, MK0
VMULOUW ADD1, K0, MK0
VMULUWM ADD1, K0, MK0
VSPLTW $3, MK0, MK0

// VMALF M0, MK0, ADD1, RED1
Expand Down Expand Up @@ -624,7 +624,7 @@ TEXT sm2p256OrdMulInternal<>(SB), NOSPLIT, $0

// VMLF ADD1, K0, MK0
// VREPF $3, MK0, MK0
VMULOUW ADD1, K0, MK0
VMULUWM ADD1, K0, MK0
VSPLTW $3, MK0, MK0

// VMALF M0, MK0, ADD1, RED1
Expand Down Expand Up @@ -663,7 +663,7 @@ TEXT sm2p256OrdMulInternal<>(SB), NOSPLIT, $0

// VMLF ADD1, K0, MK0
// VREPF $3, MK0, MK0
VMULOUW ADD1, K0, MK0
VMULUWM ADD1, K0, MK0
VSPLTW $3, MK0, MK0

// VMALF M0, MK0, ADD1, RED1
Expand Down Expand Up @@ -702,7 +702,7 @@ TEXT sm2p256OrdMulInternal<>(SB), NOSPLIT, $0

// VMLF ADD1, K0, MK0
// VREPF $3, MK0, MK0
VMULOUW ADD1, K0, MK0
VMULUWM ADD1, K0, MK0
VSPLTW $3, MK0, MK0

// VMALF M0, MK0, ADD1, RED1
Expand Down Expand Up @@ -741,7 +741,7 @@ TEXT sm2p256OrdMulInternal<>(SB), NOSPLIT, $0

// VMLF ADD1, K0, MK0
// VREPF $3, MK0, MK0
VMULOUW ADD1, K0, MK0
VMULUWM ADD1, K0, MK0
VSPLTW $3, MK0, MK0

// VMALF M0, MK0, ADD1, RED1
Expand Down Expand Up @@ -780,7 +780,7 @@ TEXT sm2p256OrdMulInternal<>(SB), NOSPLIT, $0

// VMLF ADD1, K0, MK0
// VREPF $3, MK0, MK0
VMULOUW ADD1, K0, MK0
VMULUWM ADD1, K0, MK0
VSPLTW $3, MK0, MK0

// VMALF M0, MK0, ADD1, RED1
Expand Down Expand Up @@ -819,7 +819,7 @@ TEXT sm2p256OrdMulInternal<>(SB), NOSPLIT, $0

// VMLF ADD1, K0, MK0
// VREPF $3, MK0, MK0
VMULOUW ADD1, K0, MK0
VMULUWM ADD1, K0, MK0
VSPLTW $3, MK0, MK0

// VMALF M0, MK0, ADD1, RED1
Expand Down Expand Up @@ -858,7 +858,7 @@ TEXT sm2p256OrdMulInternal<>(SB), NOSPLIT, $0

// VMLF ADD1, K0, MK0
// VREPF $3, MK0, MK0
VMULOUW ADD1, K0, MK0
VMULUWM ADD1, K0, MK0
VSPLTW $3, MK0, MK0

// VMALF M0, MK0, ADD1, RED1
Expand Down

1 comment on commit 68f37d7

@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.

Please sign in to comment.