* gcc.target/powerpc/builtins-1-be.c <vclzb>: Rename duplicate test
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / paired-3.c
blob2e4bbf4af6d004a7043b67576c5acd6664498076
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>
7 #include <stdlib.h>
9 static float out[2] __attribute__ ((aligned (8)));
11 vector float b = { 2.0, 8.0 };
12 vector float c = { 3.0, 5.0 };
14 vector float a = { 0.0, 0.0 };
15 void
16 test_api ()
19 if (paired_cmpu0_lt (b, c))
21 a = paired_add (b, c);
22 paired_stx (a, 0, out);
24 if ((out[0] != 5.0) || (out[1] != 13.0))
25 abort ();
28 int
29 main ()
31 test_api ();
32 return (0);