aix: align double complex
commit4fa6356be14414957be05bdf5e22037fe1bea283
authorDavid Edelsohn <dje.gcc@gmail.com>
Tue, 9 Mar 2021 22:52:36 +0000 (9 17:52 -0500)
committerDavid Edelsohn <dje.gcc@gmail.com>
Wed, 10 Mar 2021 23:52:50 +0000 (10 18:52 -0500)
tree9633995df16c876eedf1b570016ed91be3698d56
parent8c21bc6646dbe3365d7f89843a79eee823aa3b52
aix: align double complex

AIX word-aligns floating point doubles.  This behavior also extends to
double _Complex, which had been overlooked when compiler support for
double _Complex was added.

This patch adds DCmode to the modes whose alignment is adjusted and
adds a testcase to confirm the correct alignment.

gcc/ChangeLog:

2021-03-10  David Edelsohn  <dje.gcc@gmail.com>

PR target/99492
* config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Add check for DCmode.
* config/rs6000/rs6000.c (rs6000_special_round_type_align): Same.

gcc/testsuite/ChangeLog:

2021-03-10  David Edelsohn  <dje.gcc@gmail.com>

PR target/99492
* gcc.target/powerpc/pr99492.c: New testcase.
gcc/config/rs6000/aix.h
gcc/config/rs6000/rs6000.c
gcc/testsuite/gcc.target/powerpc/pr99492.c [new file with mode: 0644]