aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-01-22 17:41:30 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2013-01-22 17:41:30 +0100
commit3a984f1011711044bc57484f7303230eef4b2d85 (patch)
tree952d790c8ff351b2705d8cf230012c8ecb48f326 /gcc/testsuite
parent904812578d14a5f06cd294b5398e8bb2a237c031 (diff)
downloadgcc-3a984f1011711044bc57484f7303230eef4b2d85.zip
gcc-3a984f1011711044bc57484f7303230eef4b2d85.tar.gz
gcc-3a984f1011711044bc57484f7303230eef4b2d85.tar.bz2
re PR rtl-optimization/55686 (ICE in assign_by_spills, at lra-assigns.c:1244)
PR target/55686 * config/i386/i386.md (UNSPEC_STOS): New. (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1): Add UNSPEC_STOS. * gcc.target/i386/pr55686.c: New test. From-SVN: r195381
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.target/i386/pr55686.c16
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c3d6f9e..f3694db 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2013-01-22 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/55686
+ * gcc.target/i386/pr55686.c: New test.
+
2013-01-22 Dodji Seketeli <dodji@redhat.com>
PR c++/53609
diff --git a/gcc/testsuite/gcc.target/i386/pr55686.c b/gcc/testsuite/gcc.target/i386/pr55686.c
new file mode 100644
index 0000000..a263b08
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/pr55686.c
@@ -0,0 +1,16 @@
+/* PR target/55686 */
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+void
+foo (long x, long *y)
+{
+ long *a = y - 64, i;
+ for (i = 0; i < x; i++)
+ {
+ long v = y[i];
+ *a++ = v;
+ }
+ register void **c __asm__ ("di");
+ goto **c;
+}