This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed, PATCH] Add a testcase for PR target/65217


I checked in this to add a testcase for PR target/65217.

H.J.
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 221008)
+++ ChangeLog	(working copy)
@@ -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>
 
 	* gcc.misc-tests/godump-1.c: Add missing cleanup of godump-1.out.
Index: gcc.target/i386/pr65217.c
===================================================================
--- gcc.target/i386/pr65217.c	(revision 0)
+++ gcc.target/i386/pr65217.c	(working copy)
@@ -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;
+}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]