From 457c0e4a547b27d3484d84bbe978870c3f037092 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Mon, 23 Sep 2019 22:23:23 +0200 Subject: [PATCH] Workaround for gcc 8.3 on Arch Linux (ARM) ldr/madd instruction sequence makes compiled binary crash, so separate them. --- src/jit_compiler_a64_static.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jit_compiler_a64_static.S b/src/jit_compiler_a64_static.S index 2c0e439..660721c 100644 --- a/src/jit_compiler_a64_static.S +++ b/src/jit_compiler_a64_static.S @@ -488,12 +488,13 @@ randomx_calc_dataset_item_aarch64: stp x10, x11, [sp, 80] stp x12, x13, [sp, 96] + ldr x12, superscalarMul0 + mov x8, x0 mov x9, x1 mov x10, x2 # rl[0] = (itemNumber + 1) * superscalarMul0; - ldr x12, superscalarMul0 madd x0, x2, x12, x12 # rl[1] = rl[0] ^ superscalarAdd1;