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>
12 unsigned long long ull
, a
, b
;
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);
24 ull
= __rlwimi (a
, b
, 6, 9, 12);
25 ull
= __rlwnm (a
, b
, 3, 5);
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);