diff options
author | Stefan Schulze Frielinghaus <stefansf@linux.ibm.com> | 2023-05-17 10:21:39 +0200 |
---|---|---|
committer | Stefan Schulze Frielinghaus <stefansf@linux.ibm.com> | 2023-05-17 10:21:39 +0200 |
commit | b8fcc89b5bf4360aa0ed2315216081a17c18a1a1 (patch) | |
tree | e5a8d97bed16b9e32216d0b8d90d67e3eb2dd113 /gcc/testsuite/gfortran.dg/gomp/pr78260-2.f90 | |
parent | 2a03d979a28f74018aedcd7ed6572faf6244586b (diff) | |
download | gcc-b8fcc89b5bf4360aa0ed2315216081a17c18a1a1.tar.gz |
s390: Implement TARGET_ATOMIC_ALIGN_FOR_MODE
So far atomic objects are aligned according to their default alignment.
For 128 bit scalar types like int128 or long double this results in an
8 byte alignment which is wrong and must be 16 byte.
libstdc++ already computes a correct alignment, though, still adding a
test case in order to make sure that both implementations are
compatible.
gcc/ChangeLog:
* config/s390/s390.cc (TARGET_ATOMIC_ALIGN_FOR_MODE):
New.
(s390_atomic_align_for_mode): New.
gcc/testsuite/ChangeLog:
* g++.target/s390/atomic-align-1.C: New test.
* gcc.target/s390/atomic-align-1.c: New test.
* gcc.target/s390/atomic-align-2.c: New test.
Diffstat (limited to 'gcc/testsuite/gfortran.dg/gomp/pr78260-2.f90')
0 files changed, 0 insertions, 0 deletions