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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [altivec-10.C] - Blame information for rev 717

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

Line No. Rev Author Line
1 693 jeremybenn
/* This is a compile-only test for interaction of "-maltivec" and "-save-temps".  */
2
/* Author:  Ziemowit Laski  .  */
3
/* { dg-do compile { target powerpc*-*-* } } */
4
/* { dg-require-effective-target powerpc_altivec_ok } */
5
/* { dg-options "-save-temps -maltivec" } */
6
 
7
#include 
8
 
9
#define vector_float vector float
10
#define vector_float_foo vector float foo
11
#define vector_float_bar_eq vector float bar =
12
 
13
/* NB: Keep the following split across three lines.  */
14
vector
15
int
16
a1 = { 100, 200, 300, 400 };
17
 
18
vector_float f1 = { 1.0, 2.0, 3.0, 4.0 };
19
vector_float_foo = { 3.0, 4.0, 5.0, 6.0 };
20
vector_float_bar_eq { 8.0, 7.0, 6.0, 5.0 };
21
 
22
/* { dg-final { cleanup-saved-temps } } */

powered by: WebSVN 2.1.0

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