re PR rtl-optimization/61215 (ICE in gen_add2_insn, at optabs.c:4718 when building...
authorVladimir Makarov <vmakarov@redhat.com>
Fri, 23 May 2014 15:34:03 +0000 (15:34 +0000)
committerVladimir Makarov <vmakarov@gcc.gnu.org>
Fri, 23 May 2014 15:34:03 +0000 (15:34 +0000)
2014-05-23  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/61215
* gcc.target/i386/pr61215.c: New.

From-SVN: r210863

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr61215.c [new file with mode: 0644]

index 05fea9e..36d6f9f 100644 (file)
@@ -1,3 +1,8 @@
+2014-05-23  Vladimir Makarov  <vmakarov@redhat.com>
+
+       PR rtl-optimization/61215
+       * gcc.target/i386/pr61215.c: New.
+
 2014-05-23  Marek Polacek  <polacek@redhat.com>
            Jakub Jelinek  <jakub@redhat.com>
 
diff --git a/gcc/testsuite/gcc.target/i386/pr61215.c b/gcc/testsuite/gcc.target/i386/pr61215.c
new file mode 100644 (file)
index 0000000..03a7a2c
--- /dev/null
@@ -0,0 +1,10 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target ia32 } */
+/* { dg-options "-O2 -march=i686" } */
+
+void fn1 (int *, ...);
+int fn2 (int p1)
+{
+  fn1 (0, (short)(int)&p1);
+  return 0;
+}