Update std atomic check and simd compatibility check for arc compiler (#3716)
This commit is contained in:
@ -3121,7 +3121,8 @@ aot_create_comp_context(const AOTCompData *comp_data, aot_comp_option_t option)
|
||||
#endif
|
||||
|
||||
if (option->enable_simd && strcmp(comp_ctx->target_arch, "x86_64") != 0
|
||||
&& strncmp(comp_ctx->target_arch, "aarch64", 7) != 0) {
|
||||
&& strncmp(comp_ctx->target_arch, "aarch64", 7) != 0
|
||||
&& strcmp(comp_ctx->target_arch, "arc") != 0) {
|
||||
/* Disable simd if it isn't supported by target arch */
|
||||
option->enable_simd = false;
|
||||
}
|
||||
|
||||
@ -176,6 +176,9 @@ aot_check_simd_compatibility(const char *arch_c_str, const char *cpu_c_str)
|
||||
else if (targetArch == llvm::Triple::aarch64) {
|
||||
return subTargetInfo->checkFeatures("+neon");
|
||||
}
|
||||
else if (targetArch == llvm::Triple::arc) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user