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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [altivec-14.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*-*-* && ilp32 } } } */
2
/* { dg-require-effective-target powerpc_altivec_ok } */
3
/* { dg-options "-maltivec -mno-vsx" } */
4
 
5
#include <altivec.h>
6
 
7
vector bool long vbl;           /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
8
vector signed long vsl;         /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
9
vector unsigned long vul;       /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
10
vector bool long *pvbl;         /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
11
vector signed long *pvsl;       /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
12
vector unsigned long *pvul;     /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
13
 
14
void fvbl (vector bool long v) { }      /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
15
void fvsl (vector signed long v) { }    /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
16
void fvul (vector unsigned long v) { }  /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
17
 
18
int main ()
19
{
20
  vector bool long lvbl;        /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
21
  vector signed long lvsl;      /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
22
  vector unsigned long lvul;    /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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