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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [sparc/] [vis3move-1.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 } */
2
/* { dg-require-effective-target ilp32 } */
3
/* { dg-options "-O1 -mvis3" } */
4
 
5
double d;
6
float f;
7
 
8
int test_convert_from_float(void)
9
{
10
  return f;
11
}
12
 
13
int test_convert_from_double(void)
14
{
15
  return d;
16
}
17
 
18
float test_convert_to_float(int x)
19
{
20
  return x;
21
}
22
 
23
double test_convert_to_double(int x)
24
{
25
  return x;
26
}
27
 
28
/* { dg-final { scan-assembler-times "movstouw\t%" 2 } } */
29
/* { dg-final { scan-assembler-times "movwtos\t%" 2 } } */

powered by: WebSVN 2.1.0

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