Add a testcase for PR target/65217

PR target/65217
	* gcc.target/i386/pr65217.c: New.

From-SVN: r221010
This commit is contained in:
H.J. Lu 2015-02-26 14:17:06 +00:00 committed by H.J. Lu
parent b5cdc3eb1d
commit e5d0da7fe3
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2015-02-26 H.J. Lu <hongjiu.lu@intel.com>
PR target/65217
* gcc.target/i386/pr65217.c: New.
2015-02-26 Tom de Vries <tom@codesourcery.com>
* lib/dg-pch.exp (pch-init): Add missing cleanup of pchtest<n>.o.

View File

@ -0,0 +1,12 @@
/* { dg-do compile } */
/* { dg-options "-O" } */
/* { dg-final { scan-assembler-not "negl" } } */
/* { dg-final { scan-assembler-not "andl" } } */
int
test(int n)
{
if ((n & -n) != n)
__builtin_unreachable();
return n;
}