[rtems commit] testsuites/unit: Fix build error on aarch64
Sebastian Huber
sebh at rtems.org
Thu Oct 12 13:35:19 UTC 2023
Module: rtems
Branch: master
Commit: f7632d0dad238a77b0e961f44c2e404264c20f8f
Changeset: http://git.rtems.org/rtems/commit/?id=f7632d0dad238a77b0e961f44c2e404264c20f8f
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Oct 12 14:58:53 2023 +0200
testsuites/unit: Fix build error on aarch64
Update #3716.
---
testsuites/unit/tc-compiler-builtins.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/testsuites/unit/tc-compiler-builtins.c b/testsuites/unit/tc-compiler-builtins.c
index 60f28f64a6..13a9c4a248 100644
--- a/testsuites/unit/tc-compiler-builtins.c
+++ b/testsuites/unit/tc-compiler-builtins.c
@@ -89,7 +89,11 @@
* @{
*/
-#if __LONG_MAX__ == 0x7fffffffL
+#if __LONG_MAX__ == 0x7fffffffL && !defined(__aarch64__)
+#define TEST_UDIVMODDI4
+#endif
+
+#if defined(TEST_UDIVMODDI4)
uint64_t __udivmoddi4( uint64_t n, uint64_t d, uint64_t *r );
#endif
@@ -482,7 +486,7 @@ static void CompilerUnitBuiltins_Action_5( void )
d = INT64_C( 0x000000ff0000000f );
T_eq_i64( n % d, INT64_C( 64424509455 ) );
- #if __LONG_MAX__ == 0x7fffffffL
+ #if defined(TEST_UDIVMODDI4)
/*
* The above test cases may use __udivmoddi4(). However, the below
* parameter values for __udivmoddi4() cannot be obtained through the
More information about the vc
mailing list