re PR target/31486 (ICE with vector code when -mno-sse2 on amd64)
authorUros Bizjak <ubizjak@gmail.com>
Tue, 22 Apr 2008 06:48:48 +0000 (08:48 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Tue, 22 Apr 2008 06:48:48 +0000 (08:48 +0200)
PR target/31486
* gcc.target/i386/pr31486.c: New test.

From-SVN: r134549

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

index 4a86a03acafcab44fc2b0ad17d423dcc5adfc53c..b1c7258442c0f767c9012af79f80f87371954ff3 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-21  Uros Bizjak  <ubizjak@gmail.com>
+
+       PR target/31486
+       * gcc.target/i386/pr31486.c: New test.
+
 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
 
        * gcc.dg/profile-dir-1.c, gcc.dg/profile-dir-2.c,
diff --git a/gcc/testsuite/gcc.target/i386/pr31486.c b/gcc/testsuite/gcc.target/i386/pr31486.c
new file mode 100644 (file)
index 0000000..7082d3d
--- /dev/null
@@ -0,0 +1,13 @@
+/* { dg-do compile } */
+/* { dg-options "-msse -mno-sse2" } */
+
+typedef double __v2df __attribute__ ((vector_size (16)));
+
+__v2df b = { 1.1, 1.2 };
+
+extern __v2df a2 (__v2df a, __v2df b);
+
+void test2 ()
+{
+  b = a2 (b, b);
+}