Dávid Házi | 98efc60 | 2022-08-02 15:06:19 +0200 | [diff] [blame^] | 1 | From 1698af1aa6a8cbf4ca59dd5dbd756418e58273d5 Mon Sep 17 00:00:00 2001 |
| 2 | From: Dávid Házi <david.hazi@arm.com> |
| 3 | Date: Tue, 2 Aug 2022 14:38:32 +0200 |
| 4 | Subject: [PATCH 6/6] Build: Remove encoding width suffix from Arm bignum assembly |
| 5 | |
| 6 | Signed-off-by: Dávid Házi <david.hazi@arm.com> |
| 7 | --- |
| 8 | library/bn_mul.h | 18 +++++++++--------- |
| 9 | 1 file changed, 9 insertions(+), 9 deletions(-) |
| 10 | |
| 11 | diff --git a/library/bn_mul.h b/library/bn_mul.h |
| 12 | index 962d7a97..9cc84d06 100644 |
| 13 | --- a/library/bn_mul.h |
| 14 | +++ b/library/bn_mul.h |
| 15 | @@ -717,10 +717,10 @@ |
| 16 | |
| 17 | #define MULADDC_X1_CORE \ |
| 18 | ".p2align 2 \n\t" \ |
| 19 | - "ldr.w %[a], [%[in]], #4 \n\t" \ |
| 20 | - "ldr.w %[b], [%[acc]] \n\t" \ |
| 21 | + "ldr %[a], [%[in]], #4 \n\t" \ |
| 22 | + "ldr %[b], [%[acc]] \n\t" \ |
| 23 | "umaal %[b], %[carry], %[scalar], %[a] \n\t" \ |
| 24 | - "str.w %[b], [%[acc]], #4 \n\t" |
| 25 | + "str %[b], [%[acc]], #4 \n\t" |
| 26 | |
| 27 | #define MULADDC_X1_STOP \ |
| 28 | : [a] "=&r" (tmp_a), \ |
| 29 | @@ -751,14 +751,14 @@ |
| 30 | * 2 cycles, while subsequent loads/stores are single-cycle. */ |
| 31 | #define MULADDC_X2_CORE \ |
| 32 | ".p2align 2 \n\t" \ |
| 33 | - "ldr.w %[a0], [%[in]], #+8 \n\t" \ |
| 34 | - "ldr.w %[b0], [%[acc]], #+8 \n\t" \ |
| 35 | - "ldr.w %[a1], [%[in], #-4] \n\t" \ |
| 36 | - "ldr.w %[b1], [%[acc], #-4] \n\t" \ |
| 37 | + "ldr %[a0], [%[in]], #+8 \n\t" \ |
| 38 | + "ldr %[b0], [%[acc]], #+8 \n\t" \ |
| 39 | + "ldr %[a1], [%[in], #-4] \n\t" \ |
| 40 | + "ldr %[b1], [%[acc], #-4] \n\t" \ |
| 41 | "umaal %[b0], %[carry], %[scalar], %[a0] \n\t" \ |
| 42 | "umaal %[b1], %[carry], %[scalar], %[a1] \n\t" \ |
| 43 | - "str.w %[b0], [%[acc], #-8] \n\t" \ |
| 44 | - "str.w %[b1], [%[acc], #-4] \n\t" |
| 45 | + "str %[b0], [%[acc], #-8] \n\t" \ |
| 46 | + "str %[b1], [%[acc], #-4] \n\t" |
| 47 | |
| 48 | #define MULADDC_X2_STOP \ |
| 49 | : [a0] "=&r" (tmp_a0), \ |
| 50 | -- |
| 51 | 2.34.1 |
| 52 | |