Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / paired-1.c
blob19a66a15b30b20a1a94b4b12cdcd9471a0a43536
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 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);