wasm-micro-runtime/core/iwasm/aot
YAMAMOTO Takashi 4735956eeb
fix return types of our 64-bit clz/ctz/popcount intrinsics (#4238)
the corresponding LLVM intrinsics' return types are same as
their first argument. eg. i64 for llvm.cttz.i64.
cf. https://llvm.org/docs/LangRef.html#llvm-cttz-intrinsic

this commit changes the return types of our versions of the
intrinsics to match llvm versions as our aot compiler,
specifically __call_llvm_intrinsic, assumes.

strictly speaking, this is a potential AOT ABI change.
however, I suppose it isn't a problem for many of 64-bit ABIs
out there, where (lower half of) a 64-bit register is used to
return a 32-bit value anyway.  (for such ABIs, this commit
would fix the upper 32-bit value of the register.)
2025-05-06 10:15:00 +08:00
..
arch Fix the error of AOT mode on the "i386-windows-msvc" platform (#4183) 2025-04-17 00:04:27 +08:00
debug Appease GCC strict prototypes warning (#3775) 2024-09-10 09:42:23 +08:00
aot_intrinsic.c fix return types of our 64-bit clz/ctz/popcount intrinsics (#4238) 2025-05-06 10:15:00 +08:00
aot_intrinsic.h fix return types of our 64-bit clz/ctz/popcount intrinsics (#4238) 2025-05-06 10:15:00 +08:00
aot_loader.c teach aot emitter/loader about .srodata and .srodata.cst* sections (#4240) 2025-05-06 06:55:35 +08:00
aot_perf_map.c Add missing casts and improve error handling in performance map functions (#4202) 2025-04-17 15:22:23 +08:00
aot_perf_map.h Enhance wasm loading with LoadArgs and support module names (#3265) 2024-04-07 15:04:35 +08:00
aot_reloc.h aot: add new u64 intrinsics (#4168) 2025-04-09 15:19:48 +08:00
aot_runtime.c Fix the error of AOT mode on the "i386-windows-msvc" platform (#4183) 2025-04-17 00:04:27 +08:00
aot_runtime.h address comments 2025-02-27 14:32:17 +00:00
aot_validator.c add a validator for aot module (#3995) 2025-02-05 15:21:49 +08:00
aot_validator.h add a validator for aot module (#3995) 2025-02-05 15:21:49 +08:00
iwasm_aot.cmake Keep fix the CMake compatibility issue (#4180) 2025-04-15 12:51:19 +08:00
SConscript Add ia32 support and fix compiling issue for RT-Thread (#730) 2021-09-07 10:20:14 +08:00