aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-03-18 09:53:24 +0100
committerJakub Jelinek <jakub@redhat.com>2021-03-18 09:53:24 +0100
commit57e274408c237c08d2f78722e3767651ef931170 (patch)
tree5b589d89418fb254b1daae233b882cf88b1eeb03
parent19ac7c94b2ff9e6e289b30989a9339cb7f76a86a (diff)
downloadgcc-57e274408c237c08d2f78722e3767651ef931170.zip
gcc-57e274408c237c08d2f78722e3767651ef931170.tar.gz
gcc-57e274408c237c08d2f78722e3767651ef931170.tar.bz2
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.
-rw-r--r--gcc/testsuite/gcc.dg/pr98099.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/pr98099.c b/gcc/testsuite/gcc.dg/pr98099.c
index 12e52f2..c78d43e 100644
--- a/gcc/testsuite/gcc.dg/pr98099.c
+++ b/gcc/testsuite/gcc.dg/pr98099.c
@@ -1,8 +1,9 @@
/* PR middle-end/98099 */
/* Reported by G. Steinmetz <gscfq@t-online.de> */
-/* { dg-do compile { target dfp } } */
-/* { dg-options "-fsso-struct=big-endian" } */
+/* { dg-do compile { target { dfp && { be || le } } } } */
+/* { dg-options "-fsso-struct=big-endian" { target le } } */
+/* { dg-options "-fsso-struct=little-endian" { target be } } */
struct S { _Decimal128 a; };