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/] [20020523.c] - Blame information for rev 328

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

Line No. Rev Author Line
1 318 jeremybenn
/* PR target/6753
2
   This testcase was miscompiled because sse_mov?fcc_const0*
3
   patterns were missing earlyclobber.  */
4
 
5
/* { dg-do run } */
6
/* { dg-options "-O2 -msse -mfpmath=sse -ffast-math" } */
7
/* { dg-require-effective-target sse } */
8
 
9
#include "sse-check.h"
10
 
11
float one = 1.f;
12
 
13
void bar (float f)
14
{
15
  if (__builtin_memcmp (&one, &f, sizeof (float)))
16
    abort ();
17
}
18
 
19
float foo (void)
20
{
21
  return 1.f;
22
}
23
 
24
typedef struct
25
{
26
  float t;
27
} T;
28
 
29
static void
30
sse_test (void)
31
{
32
  int i;
33
  T x[1];
34
 
35
  for (i = 0; i < 1; i++)
36
    {
37
      x[i].t = foo ();
38
      x[i].t = 0.f > x[i].t ? 0.f : x[i].t;
39
      bar (x[i].t);
40
    }
41
}

powered by: WebSVN 2.1.0

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