re PR rtl-optimization/71984 (wrong code with -O -mavx512cd)

2016-08-04  Richard Biener  <rguenther@suse.de>

	PR middle-end/71984
	* gcc.dg/torture/pr71984.c: Guard correctness check for
	little-endian.

From-SVN: r239114
This commit is contained in:
Richard Biener 2016-08-04 07:02:47 +00:00 committed by Richard Biener
parent b29fcf3b64
commit fb46286e8d
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2016-08-04 Richard Biener <rguenther@suse.de>
PR middle-end/71984
* gcc.dg/torture/pr71984.c: Guard correctness check for
little-endian.
2016-08-03 Andrew Pinski <apinski@cavium.com>
* gcc.c-torture/compile/20160802-1.c: New testcase.

View File

@ -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;
}