Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / paired-1.c
blob641a8e022f8cfccda713be7c14caa04720c3a9af
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 in1[2] __attribute__ ((aligned (8))) =
9 {6.0, 7.0};
10 static float in2[2] __attribute__ ((aligned (8))) =
11 {4.0, 3.0};
13 static float out[2] __attribute__ ((aligned (8)));
15 vector float a, b, c, d;
16 void
17 test_api ()
19 b = paired_lx (0, in1);
20 c = paired_lx (0, in2);
22 a = paired_sub (b, c);
24 paired_stx (a, 0, out);
27 int
28 main ()
30 test_api ();
31 return (0);