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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [altivec-7.C] - Rev 801

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

/* Test for AltiVec type overloading and name mangling.  */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */

#include <altivec.h>

void foo(vector unsigned char) { }
void foo(vector signed char) { }
void foo(vector bool     char) { }
void foo(vector unsigned short) { }
void foo(vector signed short) { }
void foo(vector bool short) { }
void foo(vector unsigned int) { }
void foo(vector signed int) { }
void foo(vector bool int) { }
void foo(vector float) { }
void foo(vector pixel) { }
void foo(int) { }
void foo(unsigned int) { }
void foo(float) { }

/* { dg-final { scan-assembler "_Z3fooU8__vectorh" } } */
/* { dg-final { scan-assembler "_Z3fooU8__vectora" } } */
/* { dg-final { scan-assembler "_Z3fooU8__vectorU6__boolc" } } */
/* { dg-final { scan-assembler "_Z3fooU8__vectort" } } */
/* { dg-final { scan-assembler "_Z3fooU8__vectors" } } */
/* { dg-final { scan-assembler "_Z3fooU8__vectorU6__bools" } } */
/* { dg-final { scan-assembler "_Z3fooU8__vectorj" } } */
/* { dg-final { scan-assembler "_Z3fooU8__vectori" } } */
/* { dg-final { scan-assembler "_Z3fooU8__vectorU6__booli" } } */
/* { dg-final { scan-assembler "_Z3fooU8__vectorf" } } */
/* { dg-final { scan-assembler "_Z3fooU8__vectoru7__pixel" } } */
/* { dg-final { scan-assembler "_Z3fooi" } } */
/* { dg-final { scan-assembler "_Z3fooj" } } */
/* { dg-final { scan-assembler "_Z3foof" } } */

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

powered by: WebSVN 2.1.0

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