Merge -r 127928:132243 from trunk
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / paired-9.c
blob2d96cd4f7d3028692cfa5683d555af0187e6a492
1 /* { dg-do compile { target powerpc-*-linux*paired* } } */
2 /* { dg-options "-mpaired -m32 -ffinite-math-only " } */
4 /* Test PowerPC PAIRED extensions. */
6 #include <paired.h>
8 static float out[2] __attribute__ ((aligned (8)));
9 void
10 test_api (float y, float x)
12 vector float c = {x, 7.0};
13 vector float b = {0.0, 8.0};
14 vector float a;
16 a = paired_sub (b, c);
17 paired_stx (a, 0, out);
21 int main ()
23 test_api (6, 7);
24 return (0);