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

Subversion Repositories openrisc

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

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 powerpc_vsx_ok } */
4
/* { dg-options "-O2 -mcpu=power7" } */
5
 
6
/* Make sure that vec_mergel and vec_mergeh are supported for V2DF/V2DI types.  */
7
/* { dg-final { scan-assembler-times "xxpermdi" 4 } } */
8
 
9
#include <altivec.h>
10
 
11
void vec_high_v2df (vector double *a, vector double *b, vector double *c)
12
{
13
  *a = vec_mergeh (*b, *c);
14
}
15
 
16
void vec_low_v2df (vector double *a, vector double *b, vector double *c)
17
{
18
  *a = vec_mergel (*b, *c);
19
}
20
 
21
void vec_high_v2di (vector long long *a, vector long long *b, vector long long *c)
22
{
23
  *a = vec_mergeh (*b, *c);
24
}
25
 
26
void vec_low_v2di (vector long long *a, vector long long *b, vector long long *c)
27
{
28
  *a = vec_mergel (*b, *c);
29
}

powered by: WebSVN 2.1.0

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