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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [altivec-pr22085.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile { target powerpc*-*-* } } */
2
/* { dg-require-effective-target powerpc_altivec_ok } */
3
/* { dg-options "-maltivec -fpreprocessed" } */
4
 
5
/* Program to test AltiVec with -fpreprocessed.  */
6
int foo(__attribute__((altivec(vector__))) float x,
7
        __attribute__((altivec(vector__))) float y)
8
{
9
  if (__builtin_vec_vcmpeq_p (2, (x), (y)))
10
    return 3245;
11
  else
12
    return 12;
13
}

powered by: WebSVN 2.1.0

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