blob: 7f2d3d3eff984ccf50a6d415e5766d23097a05e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O2 -mcpu=power6x -mmfpgpr" } */
/* { dg-final { scan-assembler "mffgpr" } } */
/* { dg-final { scan-assembler "mftgpr" } } */
/* Test that we generate the instructions to move between the GPR and FPR
registers under power6x. */
extern long return_long (void);
extern double return_double (void);
double return_double2 (void)
{
return (double) return_long ();
}
long return_long2 (void)
{
return (long) return_double ();
}
|