From adc8702ad7320569b671f17936dfb34353ea5182 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Fri, 6 Sep 2024 13:22:41 +0800 Subject: [PATCH] test VSPLTISW scope --- sm3/sm3blocks_ppc64x.s | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sm3/sm3blocks_ppc64x.s b/sm3/sm3blocks_ppc64x.s index 569431f..989623a 100644 --- a/sm3/sm3blocks_ppc64x.s +++ b/sm3/sm3blocks_ppc64x.s @@ -60,7 +60,7 @@ GLOBL ·mask(SB), RODATA, $80 // r = s <<< n #define PROLD(s, r, n) \ - XXSPLTIW $n, TMP5 \ + VSPLTISW $n, TMP5 \ VRLW s, TMP5, r #define loadWordByIndex(W, i) \ @@ -362,7 +362,9 @@ end: STXVW4X c, (R0)(R4) STXVW4X g, (R16)(R4) MOVD (R17)(digPtr), R4 + VSPLTISW $12, d STXVW4X d, (R0)(R4) + VSPLTISW $19, h STXVW4X h, (R16)(R4) RET