Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / ppc-paired.c
blobbe84e431c9e8910811f763bb44e4a980cea85e9e
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 vector float a, b, c, d;
10 void
11 test_api ()
13 b = paired_msub (b, c, d);
14 b = paired_madd (b, c, d);
15 b = paired_nmadd (b, c, d);
16 b = paired_nmsub (b, c, d);
17 b = paired_sum0 (a, b, c);
18 b = paired_sum1 (a, b, c);
19 b = paired_div (b, c);
20 b = paired_add (a, c);
21 b = paired_sub (a, c);
22 b = paired_mul (a, c);
23 b = paired_neg (a);
24 b = paired_muls0 (a, c);
25 b = paired_muls1 (a, c);
26 b = paired_madds0 (a, c, d);
27 b = paired_madds1 (a, c, d);
28 b = paired_merge00 (a, c);
29 b = paired_merge01 (a, c);
30 b = paired_merge10 (a, c);
31 b = paired_merge11 (a, c);
32 b = paired_abs (a);
33 b = paired_nabs (a);
34 b = paired_sqrt (a);
35 b = paired_res (a);
36 b = paired_sel (a, b, c);
39 int
40 main (void)
42 test_api ();
43 return 0;