OSDN Git Service

PR target/31486
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Apr 2008 06:48:48 +0000 (06:48 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Apr 2008 06:48:48 +0000 (06:48 +0000)
* gcc.target/i386/pr31486.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134549 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 4a86a03..b1c7258 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,
 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);
+}