From: Richard Biener Date: Tue, 12 May 2020 12:13:32 +0000 (+0200) Subject: middle-end/94988 fix testcase for big-endian X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=119a7db1e05c9741803b3ff93266b00fd535732a;p=gcc.git middle-end/94988 fix testcase for big-endian The testcase only works for little-endian, mark it so. 2020-05-12 Richard Biener PR middle-end/94988 * gcc.dg/torture/pr94988.c: Disable runtime test for * non-little-endian. --- diff --git a/gcc/testsuite/gcc.dg/torture/pr94988.c b/gcc/testsuite/gcc.dg/torture/pr94988.c index 1ee99fea5ce..dd523b81d99 100644 --- a/gcc/testsuite/gcc.dg/torture/pr94988.c +++ b/gcc/testsuite/gcc.dg/torture/pr94988.c @@ -14,7 +14,9 @@ main() { b = (short *)&b; bar (0, 1); +#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ if ((short)(__UINTPTR_TYPE__)b != 0) __builtin_abort (); +#endif return 0; }