From 9666c927fa984f78756c70e927ffd411e380ead4 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Wed, 4 Sep 2024 13:20:22 +0800 Subject: [PATCH] use other instructions to implement VREPIF --- .github/workflows/test_s390x.yaml | 2 +- sm3/sm3blocks_s390x.s | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_s390x.yaml b/.github/workflows/test_s390x.yaml index cbee2b8..c22eade 100644 --- a/.github/workflows/test_s390x.yaml +++ b/.github/workflows/test_s390x.yaml @@ -14,7 +14,7 @@ jobs: test: strategy: matrix: - go-version: [1.22.x] + go-version: [1.19.x] arch: [s390x] runs-on: ubuntu-latest steps: diff --git a/sm3/sm3blocks_s390x.s b/sm3/sm3blocks_s390x.s index 400a4d7..51463a1 100644 --- a/sm3/sm3blocks_s390x.s +++ b/sm3/sm3blocks_s390x.s @@ -72,8 +72,10 @@ GLOBL mask<>(SB), 8, $64 LAY 16(srcPtrPtr), srcPtrPtr; \ ADD $64, wordPtr +// VREPIF $const, T #define LOAD_T(const, T) \ - VREPIF $32768, T + VLEIF $3, $const, T; \ + VREPF $3, T, T #define ROUND_00_11(index, const, a, b, c, d, e, f, g, h) \ PROLD(a, TMP0, 12) \