From 690c364e3e6c98f3a088baed4aa3006fd4c79b6f Mon Sep 17 00:00:00 2001 From: Ziemowit Laski Date: Fri, 28 May 2004 23:08:58 +0000 Subject: [PATCH] altivec-16.c: New test. [gcc/testsuite/ChangeLog] 2004-05-28 Ziemowit Laski * gcc.dg/altivec-16.c: New test. From-SVN: r82396 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/altivec-16.c | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/altivec-16.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8c3e963f6ad..c4201215571 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-05-28 Ziemowit Laski + + * gcc.dg/altivec-16.c: New test. + 2004-05-28 Janis Johnson * lib/target-supports.exp (check_vmx_hw_available): New. diff --git a/gcc/testsuite/gcc.dg/altivec-16.c b/gcc/testsuite/gcc.dg/altivec-16.c new file mode 100644 index 00000000000..fcfaeb983a3 --- /dev/null +++ b/gcc/testsuite/gcc.dg/altivec-16.c @@ -0,0 +1,19 @@ +/* This is a compile-only test for interaction of "-maltivec" and "-save-temps". */ +/* Author: Ziemowit Laski . */ +/* { dg-do compile { target powerpc*-*-* } } */ +/* { dg-options "-save-temps -maltivec" } */ + +#include + +#define vector_float vector float +#define vector_float_foo vector float foo +#define vector_float_bar_eq vector float bar = + +/* NB: Keep the following split across three lines. */ +vector +int +a1 = { 100, 200, 300, 400 }; + +vector_float f1 = { 1.0, 2.0, 3.0, 4.0 }; +vector_float_foo = { 3.0, 4.0, 5.0, 6.0 }; +vector_float_bar_eq { 8.0, 7.0, 6.0, 5.0 }; -- 2.30.2