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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [altivec-cell-5.c] - Blame information for rev 325

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 322 jeremybenn
/* { dg-do compile { target powerpc*-*-* } } */
2
/* { dg-require-effective-target powerpc_altivec_ok } */
3
/* { dg-options "-maltivec" } */
4
 
5
/* Basic test for the new VMX intrinsics and error messages.  */
6
#include <altivec.h>
7
 
8
int main(int argc, char **argv)
9
{
10
vector float t;
11
    vec_promote();                      /* { dg-error "vec_promote only accepts 2" } */
12
    vec_promote(1.0f);                  /* { dg-error "vec_promote only accepts 2" } */
13
    vec_promote(1.0f, 2, 3);            /* { dg-error "vec_promote only accepts 2" } */
14
    vec_extract ();                     /* { dg-error "vec_extract only accepts 2" } */
15
    vec_extract (t);                    /* { dg-error "vec_extract only accepts 2" } */
16
    vec_extract (t, 2);
17
    vec_extract (t, 2, 5, 6);           /* { dg-error "vec_extract only accepts 2" } */
18
    vec_splats ();                      /* { dg-error "vec_splats only accepts 1" } */
19
    vec_splats (t, 3);                  /* { dg-error "vec_splats only accepts 1" } */
20
    vec_insert ();                      /* { dg-error "vec_insert only accepts 3" } */
21
    vec_insert (t);                     /* { dg-error "vec_insert only accepts 3" } */
22
    vec_insert (t, 3);                  /* { dg-error "vec_insert only accepts 3" } */
23
    vec_insert (t, 3, 2, 4, 6, 6);      /* { dg-error "vec_insert only accepts 3" } */
24
    return 0;
25
}

powered by: WebSVN 2.1.0

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