Skip to content

Commit

Permalink
i#5365: Build core unit tests with SVE enabled
Browse files Browse the repository at this point in the history
Build most core tests with SVE flags and high optimisation (-O3), if building
on an AARCH64 SVE machine.

Tests which fail when built with -O3 are not included.

Add some error checking to a few tests to allow the -O3 build and update
template (expected output) files as necessary.

Issue #6429 raised to cover making the removal of optimization flags more
granular.

Issue: #5365
  • Loading branch information
philramsey-arm committed Nov 9, 2023
1 parent 6c920cd commit 7945d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion suite/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ function(add_sve_flags target)
if (target IN_LIST sve_tests)
target_compile_options(${target} PRIVATE
-march=armv8.4-a+crypto+rcpc+sha3+sm4+sve+rng+ssbs+nodotprod
# Reinstate the -03 flag which is removed with the
# Reinstate the -03 flag which is removed with the
# string(REGEX REPLACE "-O[0-9]? " " " CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
# line above.
-O3)
Expand Down

0 comments on commit 7945d47

Please sign in to comment.