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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [ppc-fpconv-4.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*-*-* } } } */
2
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
3
/* { dg-require-effective-target ilp32 } */
4
/* { dg-options "-O2 -mcpu=750 -ffast-math" } */
5
/* { dg-final { scan-assembler-not "lfiwax" } } */
6
/* { dg-final { scan-assembler-not "lfiwzx" } } */
7
/* { dg-final { scan-assembler-not "fcfid " } } */
8
/* { dg-final { scan-assembler-not "fcfids" } } */
9
/* { dg-final { scan-assembler-not "fcfidus" } } */
10
/* { dg-final { scan-assembler-not "xscvsxddp" } } */
11
/* { dg-final { scan-assembler-not "xscvuxddp" } } */
12
 
13
void int_to_float (float *dest, int *src)
14
{
15
  *dest = (float) *src;
16
}
17
 
18
void int_to_double (double *dest, int *src)
19
{
20
  *dest = (double) *src;
21
}
22
 
23
void uint_to_float (float *dest, unsigned int *src)
24
{
25
  *dest = (float) *src;
26
}
27
 
28
void uint_to_double (double *dest, unsigned int *src)
29
{
30
  *dest = (double) *src;
31
}
32
 
33
void llong_to_float (float *dest, long long *src)
34
{
35
  *dest = (float) *src;
36
}
37
 
38
void llong_to_double (double *dest, long long *src)
39
{
40
  *dest = (double) *src;
41
}
42
 
43
void ullong_to_float (float *dest, unsigned long long *src)
44
{
45
  *dest = (float) *src;
46
}
47
 
48
void ullong_to_double (double *dest, unsigned long long *src)
49
{
50
  *dest = (double) *src;
51
}

powered by: WebSVN 2.1.0

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