6 int try_mtocrf ( int x
)
10 #ifdef HAVE_AS_PPC_MFTOCRF
14 : /*w*/ : /*r*/ "b"(base
) : /*trash*/"cc" );
19 : /*w*/ : /*r*/ "b"(x
) : /*trash*/"cc" );
24 : /*w*/"=b"(res
) : /*r*/ );
32 int try_mfocrf ( int x
)
35 #ifdef HAVE_AS_PPC_MFTOCRF
39 : /*w*/ : /*r*/ "b"(x
) : /*trash*/"cc" );
45 : /*w*/"=b"(res
) : /*r*/ );
52 /* This is a bit of a kludge since mfocrf reads the spec'd CR field,
53 but the remaining returned bits are undefined. It seems like on
54 MPC7447A (Apple Mac Mini) mfocrf just reads the entire CR, which is
55 an acceptable implementation, but is not necessarily what other
56 implementations are going to do. */
61 for (i
= 0; i
< 32; i
++) {
62 printf("0x%08x\n", try_mtocrf( 1<<i
));
66 for (i
= 0; i
< 32; i
++) {
67 printf("0x%08x\n", try_mfocrf( j
));