Implement i32.div_s (#1792)

This commit is contained in:
Huang Qi
2022-12-13 10:48:51 +08:00
committed by GitHub
parent 14492757f8
commit ef4e795dba
3 changed files with 15 additions and 0 deletions

View File

@ -62,6 +62,7 @@ extern "C" {
#define AOT_INTRINSIC_FLAG_I32_DIV_U AOT_INTRINSIC_FLAG(0, 28)
#define AOT_INTRINSIC_FLAG_I32_REM_S AOT_INTRINSIC_FLAG(0, 29)
#define AOT_INTRINSIC_FLAG_I32_REM_U AOT_INTRINSIC_FLAG(0, 30)
#define AOT_INTRINSIC_FLAG_I32_DIV_S AOT_INTRINSIC_FLAG(0, 31)
#define AOT_INTRINSIC_FLAG_F64_FADD AOT_INTRINSIC_FLAG(1, 0)
#define AOT_INTRINSIC_FLAG_F64_FSUB AOT_INTRINSIC_FLAG(1, 1)
@ -259,6 +260,9 @@ aot_intrinsic_f64_cmp(AOTFloatCond cond, float64 lhs, float64 rhs);
int64
aot_intrinsic_i64_div_s(int64 l, int64 r);
int32
aot_intrinsic_i32_div_s(int32 l, int32 r);
uint32
aot_intrinsic_i32_div_u(uint32 l, uint32 r);