From fb46286e8d34e8bffdc9d04ec4cf4b10698a7e20 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 4 Aug 2016 07:02:47 +0000 Subject: [PATCH] re PR rtl-optimization/71984 (wrong code with -O -mavx512cd) 2016-08-04 Richard Biener PR middle-end/71984 * gcc.dg/torture/pr71984.c: Guard correctness check for little-endian. From-SVN: r239114 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/torture/pr71984.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e7911239d55..df48f68924d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-08-04 Richard Biener + + PR middle-end/71984 + * gcc.dg/torture/pr71984.c: Guard correctness check for + little-endian. + 2016-08-03 Andrew Pinski * gcc.c-torture/compile/20160802-1.c: New testcase. diff --git a/gcc/testsuite/gcc.dg/torture/pr71984.c b/gcc/testsuite/gcc.dg/torture/pr71984.c index e1dd04bc568..7afdd77faa9 100644 --- a/gcc/testsuite/gcc.dg/torture/pr71984.c +++ b/gcc/testsuite/gcc.dg/torture/pr71984.c @@ -15,7 +15,9 @@ int main () { u8 x = foo((v64u64){0x0706050403020100UL}); +#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ if (x != 5) __builtin_abort (); +#endif return 0; } -- 2.30.2