testsuite: Fix up pr98099.c testcase for big endian [PR98099]
authorJakub Jelinek <jakub@redhat.com>
Thu, 18 Mar 2021 08:53:24 +0000 (09:53 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 18 Mar 2021 08:53:24 +0000 (09:53 +0100)
commit57e274408c237c08d2f78722e3767651ef931170
tree5b589d89418fb254b1daae233b882cf88b1eeb03
parent19ac7c94b2ff9e6e289b30989a9339cb7f76a86a
testsuite: Fix up pr98099.c testcase for big endian [PR98099]

The testcase fails on big-endian without int128 support, because
due to -fsso-struct=big-endian no swapping is needed for big endian.
This patch restricts the testcase to big or little endian (but not pdp)
and uses -fsso-struct=little-endian for big endian, so that it is
swapping everywhere.

2021-03-18  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/98099
* gcc.dg/pr98099.c: Don't compile the test on pdp endian.
For big endian use -fsso-struct=little-endian dg-options.
gcc/testsuite/gcc.dg/pr98099.c