From: H.J. Lu Date: Thu, 26 Feb 2015 14:17:06 +0000 (+0000) Subject: Add a testcase for PR target/65217 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5d0da7fe3b214cd85441db7a40817960de1f0a7;p=gcc.git Add a testcase for PR target/65217 PR target/65217 * gcc.target/i386/pr65217.c: New. From-SVN: r221010 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b95443fcd5b..9fc8c4cadbe 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-02-26 H.J. Lu + + PR target/65217 + * gcc.target/i386/pr65217.c: New. + 2015-02-26 Tom de Vries * lib/dg-pch.exp (pch-init): Add missing cleanup of pchtest.o. diff --git a/gcc/testsuite/gcc.target/i386/pr65217.c b/gcc/testsuite/gcc.target/i386/pr65217.c new file mode 100644 index 00000000000..d5c9be5b9ef --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr65217.c @@ -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; +}