Skip to content

Commit b01fc5b

Browse files
committed
Add AOT_INTRINSIC_FLAG_F32_CONST for xtensa frontend, because espressif xtensa llvm backend does not support float-point immediate for now
1 parent 866f55b commit b01fc5b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/iwasm/aot/aot_intrinsic.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,7 @@ aot_intrinsic_fill_capability_flags(AOTCompContext *comp_ctx)
877877
add_f64_common_intrinsics(comp_ctx);
878878
add_i64_common_intrinsics(comp_ctx);
879879
add_common_float_integer_conversion(comp_ctx);
880+
add_intrinsic_capability(comp_ctx, AOT_INTRINSIC_FLAG_F32_CONST);
880881
}
881882
else {
882883
/*

core/iwasm/compilation/aot_emit_compare.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ aot_compile_op_f32_compare(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
159159
POP_F32(lhs);
160160

161161
if (comp_ctx->disable_llvm_intrinsics
162-
&& aot_intrinsic_check_capability(comp_ctx, "f32_cmp")
163-
&& strcmp(comp_ctx->target_arch, "xtensa")) {
162+
&& aot_intrinsic_check_capability(comp_ctx, "f32_cmp")) {
164163
LLVMTypeRef param_types[3];
165164
LLVMValueRef opcond = LLVMConstInt(I32_TYPE, cond, true);
166165
param_types[0] = I32_TYPE;

0 commit comments

Comments
 (0)