From b5ec9e5789bc3b16ec7dd1677836271710bc6a3b Mon Sep 17 00:00:00 2001 From: zapashcanon Date: Fri, 26 Jul 2024 14:39:22 +0200 Subject: [PATCH] do not inline or_ function --- src/libc/src/test-comp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/libc/src/test-comp.c b/src/libc/src/test-comp.c index 692edc5f1..fea1b7186 100644 --- a/src/libc/src/test-comp.c +++ b/src/libc/src/test-comp.c @@ -1,12 +1,8 @@ #include -inline __attribute__((always_inline)) int or_(int a, int b) { +static noinline __attribute__((noinline)) _Bool or_(_Bool a, _Bool b) { __asm__ __volatile__("local.get 0;" - "i32.const 0;" - "i32.ne;" "local.get 1;" - "i32.const 0;" - "i32.ne;" "i32.or;" "return;"); }