Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / paired-8.c
blob1dfaf5187964adfc072209902901baba7fdcec99
1 /* { dg-do compile { target { powerpc-*-linux*paired* && ilp32 } } } */
2 /* { dg-options "-mpaired -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 x)
12 vector float c = {x, x};
13 vector float b = {60.0, 88.0};
14 vector float a;
16 a = paired_sub (b, c);
17 paired_stx (a, 0, out);
21 int main ()
23 test_api (6);
24 return (0);