* gcc.target/powerpc/builtins-1-be.c <vclzb>: Rename duplicate test
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / ppu-intrinsics.c
blob12a1d3dd478818775813015d2191ddae5256562d
1 /* { dg-do link { target { *-*-linux* && powerpc_fprs } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=cell" } } */
3 /* { dg-options "-W -Wall -Wno-uninitialized -Wno-unused-but-set-variable -mcpu=cell" } */
4 /* Test some PPU intrinsics from <ppu_intrinsics.h>. */
6 #include <ppu_intrinsics.h>
8 int main ()
10 double d, d1, d2;
11 float f, f1, f2;
12 unsigned long long ull, a, b;
13 long long ll;
14 int i;
16 #ifdef __powerpc64__
17 ull = __rldcl (a, b, 3);
18 ull = __rldcr (a, b, 3);
19 ull = __rldic (a, 3, 4);
20 ull = __rldicl (a, 4, 5);
21 ull = __rldicr (a, 2, 3);
22 ull = __rldimi (a, b, 4, 6);
23 #endif
24 ull = __rlwimi (a, b, 6, 9, 12);
25 ull = __rlwnm (a, b, 3, 5);
26 d = __fmul (d1, d2);
27 f = __fmuls (f1, f2);
28 f = __frsp (f);
29 d = __fcfid (ll);
30 d = __frsqrte (d1);
31 ll = __fctid (d);
32 ll = __fctidz (d);
33 i = __fctiw (d);
34 i = __fctiwz (d);
36 __protected_stream_count (1, 2);
37 __protected_stream_go ();
38 __protected_stream_set (1, 0x1000, 3);
39 __protected_stream_stop (3);
40 __protected_stream_stop_all ();
41 __protected_unlimited_stream_set (3, 0x1000, 1);
43 return 0;