Skip to content

Commit

Permalink
[GR-39982] Disable NEON feature in Sulong toolchain for AArch64
Browse files Browse the repository at this point in the history
  • Loading branch information
lewurm committed Jul 21, 2022
1 parent 229af26 commit d4f3bed
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,15 @@ private static List<String> getVectorInstructionSetFlags() {
switch (Arch.getCurrent()) {
case X86_64:
return Arrays.asList("-mno-sse3", "-mno-avx");
case AARCH_64:
/*
* This is a bit controversal as per Arm ARM Armv8 has support for "Advanced SIMD"
* (aka. NEON), thus it's a reasonable assumption that `__ARM_NEON` is always
* defined. However, there is an option to ship an Armv8 core without NEON for
* "spezialized markets", so in theory a clean codebase must have a fallback for
* which `__ARM_NEON` is not defined.
*/
return Arrays.asList("-Xclang", "-target-feature", "-Xclang", "-neon");
default:
return Collections.emptyList();
}
Expand Down

0 comments on commit d4f3bed

Please sign in to comment.