@@ -159,8 +159,8 @@ 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.const " )
163- && aot_intrinsic_check_capability (comp_ctx , "f32_cmp " )) {
162+ && aot_intrinsic_check_capability (comp_ctx , "f32_cmp " )
163+ && strcmp (comp_ctx -> target_arch , "xtensa " )) {
164164 LLVMTypeRef param_types [3 ];
165165 LLVMValueRef opcond = LLVMConstInt (I32_TYPE , cond , true);
166166 param_types [0 ] = I32_TYPE ;
@@ -204,8 +204,8 @@ aot_compile_op_f64_compare(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
204204 POP_F64 (lhs );
205205
206206 if (comp_ctx -> disable_llvm_intrinsics
207- && aot_intrinsic_check_capability (comp_ctx , "f64.const " )
208- && aot_intrinsic_check_capability (comp_ctx , "f64_cmp " )) {
207+ && aot_intrinsic_check_capability (comp_ctx , "f64_cmp " )
208+ && strcmp (comp_ctx -> target_arch , "xtensa " )) {
209209 LLVMTypeRef param_types [3 ];
210210 LLVMValueRef opcond = LLVMConstInt (I32_TYPE , cond , true);
211211 param_types [0 ] = I32_TYPE ;
0 commit comments