blob: 5b4eeac1f7b57dc97eac828e3805d53939e01d1f [file] [edit]
From: rive
Subject: [PATCH 0033] resolve the fma libcalls aot code makes
On an x86_64 cpu baseline without FMA, the llvm.fma patch 0012 lowers
relaxed_madd to is a call to fmaf, which the loader must resolve.
--- a/core/iwasm/aot/aot_reloc.h
+++ b/core/iwasm/aot/aot_reloc.h
@@ -217,6 +217,8 @@ typedef struct {
REG_SYM(truncf), \
REG_SYM(rint), \
REG_SYM(rintf), \
+ REG_SYM(fma), \
+ REG_SYM(fmaf), \
REG_BULK_MEMORY_SYM() \
REG_ATOMIC_WAIT_SYM() \
REG_REF_TYPES_SYM() \