From 119a7db1e05c9741803b3ff93266b00fd535732a Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Tue, 12 May 2020 14:13:32 +0200 Subject: [PATCH] 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. --- gcc/testsuite/gcc.dg/torture/pr94988.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.30.2