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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [float128-1.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* { dg-do run { target *-*-linux* } } */
2
/* { dg-options "-O2 -msse2" } */
3
/* { dg-require-effective-target sse2 } */
4
 
5
#include "sse2-check.h"
6
 
7
extern void abort (void);
8
 
9
typedef _Complex float __attribute__((mode(TC))) _Complex128;
10
 
11
_Complex128 __attribute__ ((noinline))
12
foo (_Complex128 x, _Complex128 y)
13
{
14
  return x * y;
15
}
16
 
17
static void
18
sse2_test (void)
19
{
20
  _Complex128 a = 1.3q + 3.4qi, b = 5.6q + 7.8qi, c;
21
 
22
  c = foo (a, b);
23
  if (__real__(c) == 0.0q || __imag__ (c) == 0.0q)
24
    abort ();
25
}

powered by: WebSVN 2.1.0

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