From c7a68d9246f8daae1f86529bc5081a83ab3af9d0 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Tue, 3 Sep 2024 12:57:34 +0800 Subject: [PATCH] internal/sm2ec: ppc64le, Improve VMULT_ADD code readability --- internal/sm2ec/p256_asm_ppc64le.s | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/sm2ec/p256_asm_ppc64le.s b/internal/sm2ec/p256_asm_ppc64le.s index c908bdd..ef8c7de 100644 --- a/internal/sm2ec/p256_asm_ppc64le.s +++ b/internal/sm2ec/p256_asm_ppc64le.s @@ -95,14 +95,14 @@ GLOBL p256mul<>(SB), 8, $96 // VMALF x0, x1, y, out_low // VMALHF x0, x1, y, out_hi #define VMULT_ADD(x1, x2, y, one, out_low, out_hi) \ - VMULEUW y, one, TMP2; \ - VMULOUW y, one, TMP1; \ - VMULEUW x1, x2, out_low; \ - VMULOUW x1, x2, out_hi; \ - VADDUDM TMP2, out_low, TMP2; \ + VMULEUW y, one, TMP1; \ + VMULOUW y, one, TMP2; \ + VMULEUW x1, x2, out_hi; \ + VMULOUW x1, x2, out_low; \ VADDUDM TMP1, out_hi, TMP1; \ - VMRGOW TMP2, TMP1, out_low; \ - VMRGEW TMP2, TMP1, out_hi + VADDUDM TMP2, out_low, TMP2; \ + VMRGEW TMP1, TMP2, out_hi; \ + VMRGOW TMP1, TMP2, out_low #define res_ptr R3 #define a_ptr R4