Skip to content
Snippets Groups Projects
Commit 4eb3a486 authored by Christophe Lyon's avatar Christophe Lyon
Browse files

aarch64: Fix test_dfp_17.c for big-endian [PR 107604]

gcc.target/aarch64/aapcs64/test_dfp_17.c has been failing on
big-endian, because the _Decimal32 on-stack argument is not padded in
the same direction depending on endianness.

This patch fixes the testcase so that it expects the argument in the
right stack location, similarly to what other tests do in the same
directory.

gcc/testsuite/ChangeLog:

	PR target/107604
	* gcc.target/aarch64/aapcs64/test_dfp_17.c: Fix for big-endian.
parent 61351ab9
No related branches found
No related tags found
No related merge requests found
...@@ -32,6 +32,10 @@ struct z b = { 9.0dd, 10.0dd, 11.0dd, 12.0dd }; ...@@ -32,6 +32,10 @@ struct z b = { 9.0dd, 10.0dd, 11.0dd, 12.0dd };
ANON(struct z, a, D1) ANON(struct z, a, D1)
ANON(struct z, b, STACK) ANON(struct z, b, STACK)
ANON(int , 5, W0) ANON(int , 5, W0)
#ifndef __AAPCS64_BIG_ENDIAN__
ANON(_Decimal32, f1, STACK+32) /* Note: no promotion to _Decimal64. */ ANON(_Decimal32, f1, STACK+32) /* Note: no promotion to _Decimal64. */
#else
ANON(_Decimal32, f1, STACK+36) /* Note: no promotion to _Decimal64. */
#endif
LAST_ANON(_Decimal64, 0.5dd, STACK+40) LAST_ANON(_Decimal64, 0.5dd, STACK+40)
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment