summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/llnl/util/cpu/microarchitectures.json6
-rw-r--r--lib/spack/spack/test/llnl/util/cpu.py1
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/spack/llnl/util/cpu/microarchitectures.json b/lib/spack/llnl/util/cpu/microarchitectures.json
index ad985ba994..5a288c5809 100644
--- a/lib/spack/llnl/util/cpu/microarchitectures.json
+++ b/lib/spack/llnl/util/cpu/microarchitectures.json
@@ -904,6 +904,12 @@
"any_of": [
"sse4_2"
]
+ },
+ "neon": {
+ "reason": "NEON is required in all standard ARMv8 implementations",
+ "families": [
+ "aarch64"
+ ]
}
}
}
diff --git a/lib/spack/spack/test/llnl/util/cpu.py b/lib/spack/spack/test/llnl/util/cpu.py
index 9af784d103..9c65825a52 100644
--- a/lib/spack/spack/test/llnl/util/cpu.py
+++ b/lib/spack/spack/test/llnl/util/cpu.py
@@ -156,6 +156,7 @@ def test_architecture_family(target_name, expected_family):
('skylake', 'sse3'),
('power8', 'altivec'),
('broadwell', 'sse4.1'),
+ ('aarch64', 'neon')
])
def test_features_query(target_name, feature):
target = llnl.util.cpu.targets[target_name]