Hi All,

Minor fix for this test to address the bug report.

Reg tested for AArch64.
Okay for master?

Alfie

PS. Are such minor fixes okay in future for commit without review as obvious?

-- >8 --

Adds a definition of HWCAP_ATOMICS and HWCAP2_RNG in the test file for the
case that the glibc is old enough to not include them.

        PR target/122405

gcc/testsuite/ChangeLog:

        * g++.target/aarch64/mv-cpu-features.C: Add HWCAP_ATOMICS and
        HWCAP2_RNG defines.
---
 gcc/testsuite/g++.target/aarch64/mv-cpu-features.C | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gcc/testsuite/g++.target/aarch64/mv-cpu-features.C 
b/gcc/testsuite/g++.target/aarch64/mv-cpu-features.C
index ad6accd4c63..56e29163524 100644
--- a/gcc/testsuite/g++.target/aarch64/mv-cpu-features.C
+++ b/gcc/testsuite/g++.target/aarch64/mv-cpu-features.C
@@ -41,6 +41,14 @@ int impl ()
 #define _IFUNC_ARG_HWCAP (1ULL << 62)
 #endif
 
+#ifndef HWCAP_ATOMICS
+#define HWCAP_ATOMICS (1 << 8)
+#endif
+
+#ifndef HWCAP2_RNG
+#define HWCAP2_RNG (1 << 16)
+#endif
+
 extern "C" void
 __init_cpu_features_resolver (unsigned long hwcap, const ifunc_arg_t *arg);
 
-- 
2.34.1

Reply via email to