summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/sse-10.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2005-11-04 12:31:24 -0800
committerRichard Henderson <rth@gcc.gnu.org>2005-11-04 12:31:24 -0800
commit21210b1873d3ec3829b5aaa52d5c2d3dfe0a2942 (patch)
tree30dc2b3eab3f2e9ac7897436ffd5304d59b98730 /gcc/testsuite/gcc.target/i386/sse-10.c
parent43f31be5b702402e76289ae304045d8a91bc7437 (diff)
downloadgcc-21210b1873d3ec3829b5aaa52d5c2d3dfe0a2942.tar.gz
20000609-1.c, [...]: Move from gcc.dg/.
* gcc.target/i386/20000609-1.c, gcc.target/i386/20000614-1.c, gcc.target/i386/20000614-2.c, gcc.target/i386/20000720-1.c, gcc.target/i386/20000807-1.c, gcc.target/i386/20000904-1.c, gcc.target/i386/20001127-1.c, gcc.target/i386/20010202-1.c, gcc.target/i386/20010520-1.c, gcc.target/i386/20011009-1.c, gcc.target/i386/20011029-2.c, gcc.target/i386/20011107-1.c, gcc.target/i386/20011119-1.c, gcc.target/i386/20020201-3.c, gcc.target/i386/20020218-1.c, gcc.target/i386/20020224-1.c, gcc.target/i386/20020426-1.c, gcc.target/i386/20020523-1.c, gcc.target/i386/20020523-2.c, gcc.target/i386/20020531-1.c, gcc.target/i386/20020616-1.c, gcc.target/i386/20020729-1.c, gcc.target/i386/20030217-1.c, gcc.target/i386/20030926-1.c, gcc.target/i386/20040112-1.c, gcc.target/i386/20050113-1.c, gcc.target/i386/980211-1.c, gcc.target/i386/980226-1.c, gcc.target/i386/980414-1.c, gcc.target/i386/980520-1.c, gcc.target/i386/980709-1.c, gcc.target/i386/990117-1.c, gcc.target/i386/990130-1.c, gcc.target/i386/990213-2.c, gcc.target/i386/990214-1.c, gcc.target/i386/990424-1.c, gcc.target/i386/990524-1.c, gcc.target/i386/991129-1.c, gcc.target/i386/991209-1.c, gcc.target/i386/991214-1.c, gcc.target/i386/991230-1.c, gcc.target/i386/pr12092-1.c, gcc.target/i386/pr14289-1.c, gcc.target/i386/pr18614-1.c, gcc.target/i386/pr19236-1.c, gcc.target/i386/pr20204.c, gcc.target/i386/pr23943.c, gcc.target/i386/pr9771-1.c: Move from gcc.dg/. * gcc.target/i386/387-1.c, gcc.target/i386/387-2.c, gcc.target/i386/387-3.c, gcc.target/i386/387-4.c, gcc.target/i386/387-5.c, gcc.target/i386/387-6.c, gcc.target/i386/387-7.c, gcc.target/i386/387-8.c, gcc.target/i386/3dnow-1.c, gcc.target/i386/3dnow-2.c, gcc.target/i386/3dnowA-1.c, gcc.target/i386/3dnowA-2.c, gcc.target/i386/asm-2.c, gcc.target/i386/asm-3.c, gcc.target/i386/asm-4.c, gcc.target/i386/bitfield1.c, gcc.target/i386/bitfield2.c, gcc.target/i386/bitfield3.c, gcc.target/i386/cadd.c, gcc.target/i386/call-1.c, gcc.target/i386/clobbers.c, gcc.target/i386/cmov1.c, gcc.target/i386/cmov2.c, gcc.target/i386/cmov3.c, gcc.target/i386/cmov4.c, gcc.target/i386/cmov5.c, gcc.target/i386/cvt-1.c, gcc.target/i386/fastcall-1.c, gcc.target/i386/fpcvt-1.c, gcc.target/i386/fpcvt-2.c, gcc.target/i386/fpcvt-3.c, gcc.target/i386/fpcvt-4.c, gcc.target/i386/lea.c, gcc.target/i386/local.c, gcc.target/i386/local2.c, gcc.target/i386/loop-1.c, gcc.target/i386/loop-2.c, gcc.target/i386/loop-3.c, gcc.target/i386/memset-1.c, gcc.target/i386/mmx-1.c, gcc.target/i386/mmx-2.c, gcc.target/i386/mmx-3.c, gcc.target/i386/mmx-4.c, gcc.target/i386/mmx-5.c, gcc.target/i386/mmx-6.c, gcc.target/i386/mul.c, gcc.target/i386/pentium4-not-mull.c, gcc.target/i386/pic-1.c, gcc.target/i386/regparm.c, gcc.target/i386/rotate-1.c, gcc.target/i386/sibcall-5.c, gcc.target/i386/signbit-1.c, gcc.target/i386/signbit-2.c, gcc.target/i386/signbit-3.c, gcc.target/i386/sse-10.c, gcc.target/i386/sse-11.c, gcc.target/i386/sse-12.c, gcc.target/i386/sse-5.c, gcc.target/i386/sse-6.c, gcc.target/i386/sse-7.c, gcc.target/i386/sse-8.c, gcc.target/i386/sse-9.c, gcc.target/i386/sse-vect-types.c, gcc.target/i386/ssefn-1.c, gcc.target/i386/ssefn-2.c, gcc.target/i386/ssefn-3.c, gcc.target/i386/ssefn-4.c, gcc.target/i386/ssefp-1.c, gcc.target/i386/ssefp-2.c, gcc.target/i386/ssetype-1.c, gcc.target/i386/ssetype-2.c, gcc.target/i386/ssetype-3.c, gcc.target/i386/ssetype-4.c, gcc.target/i386/ssetype-5.c, gcc.target/i386/unroll-1.c, gcc.target/i386/volatile-1.c, gcc.target/i386/xorps.c: Move from gcc.dg/i386-*. * gcc.target/i386/pr23376.c: Move from gcc.target/x86_64/pr23376.c. * gcc.target/i386/asm-5.c: Move from gcc.dg/asm-1.c. * gcc.target/i386/sse-13.c: Move from gcc.dg/i386-sse-1.c. * gcc.target/i386/sse-14.c: Move from gcc.dg/i386-sse-2.c. * gcc.target/i386/sse-15.c: Move from gcc.dg/i386-sse-3.c. * gcc.target/i386/sse-16.c: Move from gcc.dg/i386-sse-4.c. From-SVN: r106504
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/sse-10.c')
-rw-r--r--gcc/testsuite/gcc.target/i386/sse-10.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/sse-10.c b/gcc/testsuite/gcc.target/i386/sse-10.c
new file mode 100644
index 00000000000..8c0f28ff8d6
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/sse-10.c
@@ -0,0 +1,34 @@
+/* PR 17930 */
+/* { dg-do run { target i?86-*-* x86_64-*-* } } */
+/* { dg-options "-O1 -msse2 -mfpmath=sse -mno-accumulate-outgoing-args -fno-omit-frame-pointer" } */
+
+#include "../../gcc.dg/i386-cpuid.h"
+
+typedef _Complex double complex_16;
+
+void NOINLINE
+test (complex_16 a[5][5])
+{
+ int i, j, k;
+ complex_16 x;
+
+ for (j = 0; j < 5; j++)
+ for (i = 0; i < 5; i++)
+ {
+ for (k = 0; k < j - 1; ++k)
+ x = a[k][i] * ~a[k][j];
+ a[j][i] = x;
+ }
+}
+
+int main()
+{
+ static complex_16 work[5][5];
+ unsigned long cpu_facilities;
+
+ cpu_facilities = i386_cpuid ();
+ if (cpu_facilities & bit_SSE2)
+ test (work);
+
+ return 0;
+}