From c0d82ef21f38d700a45139ec49c1c52b6f808c58 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..372d00c1f 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 __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;"); }