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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [pr47251.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile { target { powerpc*-*-* && ilp32 } } } */
2
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
3
/* { dg-require-effective-target powerpc_vsx_ok } */
4
/* { dg-options "-O2 -msoft-float -mcpu=power7" } */
5
 
6
/* PR 47151: libgcc fails to build when using --with-cpu=power7 due to a missed
7
   TARGET_HARD_FLOAT test.  */
8
unsigned long long
9
func (float a)
10
{
11
  const float dfa = a;
12
  const unsigned int hi = dfa / 0x1p32f;
13
  const unsigned int lo = dfa - (float) hi * 0x1p32f;
14
  return ((unsigned long long) hi << (4 * 8)) | lo;
15
}

powered by: WebSVN 2.1.0

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