Skip to content

Commit

Permalink
[armv7l] Add missing #ifdef guard for AArch64-specific features
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Nov 16, 2023
1 parent 20f5b71 commit dc3cc72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/processor_arm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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)) {
Expand Down

0 comments on commit dc3cc72

Please sign in to comment.