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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr50396.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-add-options ieee } */
3
 
4
extern void abort (void);
5
typedef float vf128 __attribute__((vector_size(16)));
6
typedef float vf64 __attribute__((vector_size(8)));
7
int main()
8
{
9
#if !__FINITE_MATH_ONLY__
10
#if __FLT_HAS_QUIET_NAN__
11
  vf128 v = (vf128){ 0.f, 0.f, 0.f, 0.f };
12
  vf64 u = (vf64){ 0.f, 0.f };
13
  v = v / (vf128){ 0.f, 0.f, 0.f, 0.f };
14
  if (v[0] == v[0])
15
    abort ();
16
  u = u / (vf64){ 0.f, 0.f };
17
  if (u[0] == u[0])
18
    abort ();
19
#endif
20
#endif
21
  return 0;
22
}

powered by: WebSVN 2.1.0

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