Commit 6b1db06f by Ziemowit Laski Committed by Janis Johnson

altivec-15.c: New test.

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

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

From-SVN: r82387
parent 5557d672
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
......
/* { 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment