OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [i386/] [sse-10.c] - Blame information for rev 867

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* PR 17930 */
2
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
3
/* { dg-options "-O1 -msse2 -mfpmath=sse -mno-accumulate-outgoing-args -fno-omit-frame-pointer" } */
4
 
5
#include "../../gcc.dg/i386-cpuid.h"
6
 
7
typedef _Complex double complex_16;
8
 
9
void NOINLINE
10
test (complex_16 a[5][5])
11
{
12
  int i, j, k;
13
  complex_16 x;
14
 
15
  for (j = 0; j < 5; j++)
16
    for (i = 0; i < 5; i++)
17
      {
18
        for (k = 0; k < j - 1; ++k)
19
          x = a[k][i] * ~a[k][j];
20
        a[j][i] = x;
21
      }
22
}
23
 
24
int main()
25
{
26
  static complex_16 work[5][5];
27
  unsigned long cpu_facilities;
28
 
29
  cpu_facilities = i386_cpuid ();
30
  if (cpu_facilities & bit_SSE2)
31
    test (work);
32
 
33
  return 0;
34
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.