]> gcc.gnu.org Git - gcc.git/commitdiff
re PR rtl-optimization/46178 (gcc.target/i386/(u)divmod-[58].c FAIL: ICE: in dec_regi...
authorJeff Law <law@redhat.com>
Mon, 21 Feb 2011 17:43:15 +0000 (10:43 -0700)
committerJeff Law <law@gcc.gnu.org>
Mon, 21 Feb 2011 17:43:15 +0000 (10:43 -0700)
PR rtl-optimization/46178
* gcc.target/i386/pr46178.c: New test.

PR rtl-optimization/46002
* gcc.c-torture/compile/pr46002.c: New test.

From-SVN: r170370

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr46002.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr46178.c [new file with mode: 0644]

index 3951e862a50db5ba34f8dd1df2522c3c309a54fb..d27cd28a44adcfe7163ef46015390e576d96b0ad 100644 (file)
@@ -1,3 +1,11 @@
+2011-02-21  Jeff Law <law@redhat.com>
+
+       PR rtl-optimization/46178
+       * gcc.target/i386/pr46178.c: New test.
+
+       PR rtl-optimization/46002
+       * gcc.c-torture/compile/pr46002.c: New test.
+
 2011-02-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        * g++.dg/cpp0x/lambda/lambda-conv.C: Skip scan-assembler check on
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr46002.c b/gcc/testsuite/gcc.c-torture/compile/pr46002.c
new file mode 100644 (file)
index 0000000..27a3a3a
--- /dev/null
@@ -0,0 +1,10 @@
+/* { dg-options "-fira-algorithm=priority" } */
+char **
+foo (char **p, char *cmp, unsigned i)
+{
+  for (; *p; p++)
+    if (__builtin_strncmp (*p, cmp, i))
+      if (i == __builtin_strlen (*p))
+       break;
+  return p;
+}
diff --git a/gcc/testsuite/gcc.target/i386/pr46178.c b/gcc/testsuite/gcc.target/i386/pr46178.c
new file mode 100644 (file)
index 0000000..661e3fd
--- /dev/null
@@ -0,0 +1,13 @@
+/* { dg-do compile } */
+/* { dg-options "-O -m8bit-idiv -fira-algorithm=priority" } */
+/* This is the same as divmod-5.c, just with different options which
+   trigger an ICE.  We don't look at the output.  */
+
+extern void foo (int, int, int, int, int, int);
+
+void
+bar (int x, int y)
+{
+  foo (0, 0, 0, 0, x / y, x % y);
+}
+
This page took 0.099052 seconds and 5 git commands to generate.