diff --git a/src/processor_arm.cpp b/src/processor_arm.cpp index 1cb209dbbcd627..f7139f326d59dc 100644 --- a/src/processor_arm.cpp +++ b/src/processor_arm.cpp @@ -1620,6 +1620,7 @@ static void ensure_jit_target(bool imaging) auto &features0 = jit_targets[t.base].en.features; // Always clone when code checks CPU features t.en.flags |= JL_TARGET_CLONE_CPU; +#if defined(_CPU_AARCH64_) static constexpr uint32_t clone_fp16[] = {Feature::fp16fml,Feature::fullfp16}; for (auto fe: clone_fp16) { if (!test_nbit(features0, fe) && test_nbit(t.en.features, fe)) { @@ -1629,7 +1630,7 @@ static void ensure_jit_target(bool imaging) } // The most useful one in general... t.en.flags |= JL_TARGET_CLONE_LOOP; -#ifdef _CPU_ARM_ +#elif defined(_CPU_ARM_) static constexpr uint32_t clone_math[] = {Feature::vfp3, Feature::vfp4, Feature::neon}; for (auto fe: clone_math) { if (!test_nbit(features0, fe) && test_nbit(t.en.features, fe)) {