From 42a635282ae50900b1d12fdc669ceffa27be939b Mon Sep 17 00:00:00 2001 From: Thor Preimesberger Date: Tue, 23 Sep 2025 17:13:15 -0400 Subject: [PATCH] Fix breaking tests, let compiler do register alloc --- h_malloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/h_malloc.c b/h_malloc.c index c4855cd..5dfa800 100644 --- a/h_malloc.c +++ b/h_malloc.c @@ -410,9 +410,9 @@ static size_t get_free_slot(struct random_state *rng, size_t slots, const struct __asm__ ( // set up mask - "mov $0xfffffffffffffff8, %%rdx\n\t" + "mov $0xfffffffffffffff8, %1\n\t" // tmp is now same as shift amount mod 256 in portable case - "pext %[tmp], %[random_index], %%rdx\n\t" + "pext %[tmp], %[random_index], %1\n\t" : [tmp] "=r" (tmp) : [random_index] "r" (random_index));