altivec-15.c: New test.

2004-05-28  Ziemowit Laski  <zlaski@apple.com>

	* gcc.dg/altivec-15.c: New test.

From-SVN: r82387
This commit is contained in:
Ziemowit Laski 2004-05-28 22:19:05 +00:00 committed by Janis Johnson
parent 5557d6723d
commit 6b1db06ffd
2 changed files with 33 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-05-28 Ziemowit Laski <zlaski@apple.com>
* gcc.dg/altivec-15.c: New test.
2004-05-28 Mark Mitchell <mark@codesourcery.com>
PR c++/14668

View File

@ -0,0 +1,29 @@
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-options "-maltivec" } */
#include <altivec.h>
/* Test whether the C front-end is not excessively picky about
the integral types and literals that AltiVec instrinsics will
accept. */
vector int vi = { 1, 2, 3, 4 };
int
main (void)
{
unsigned long ul = 2;
signed long sl = 2;
unsigned int ui = 2;
signed int si = 2;
float fl = 2.0;
vec_dst (&vi, ul, '\0');
vec_dst (&vi, sl, 0);
vec_dst (&vi, ui, '\0');
vec_dst (&vi, si, 0);
vec_dstst (&vi, (short)fl, '\0');
return 0;
}