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