Home | History | Annotate | Download | only in priv

Lines Matching refs:instr

241 /* Extract primary opcode, instr[31:26] */
242 static UChar ifieldOPC( UInt instr ) {
243 return toUChar( IFIELD( instr, 26, 6 ) );
246 /* Extract 10-bit secondary opcode, instr[10:1] */
247 static UInt ifieldOPClo10 ( UInt instr) {
248 return IFIELD( instr, 1, 10 );
251 /* Extract 9-bit secondary opcode, instr[9:1] */
252 static UInt ifieldOPClo9 ( UInt instr) {
253 return IFIELD( instr, 1, 9 );
256 /* Extract 5-bit secondary opcode, instr[5:1] */
257 static UInt ifieldOPClo5 ( UInt instr) {
258 return IFIELD( instr, 1, 5 );
261 /* Extract RD (destination register) field, instr[25:21] */
262 static UChar ifieldRegDS( UInt instr ) {
263 return toUChar( IFIELD( instr, 21, 5 ) );
266 /* Extract XT (destination register) field, instr[0,25:21] */
267 static UChar ifieldRegXT ( UInt instr )
269 UChar upper_bit = toUChar (IFIELD (instr, 0, 1));
270 UChar lower_bits = toUChar (IFIELD (instr, 21, 5));
274 /* Extract XS (store source register) field, instr[0,25:21] */
275 static inline UChar ifieldRegXS ( UInt instr )
277 return ifieldRegXT ( instr );
280 /* Extract RA (1st source register) field, instr[20:16] */
281 static UChar ifieldRegA ( UInt instr ) {
282 return toUChar( IFIELD( instr, 16, 5 ) );
285 /* Extract XA (1st source register) field, instr[2,20:16] */
286 static UChar ifieldRegXA ( UInt instr )
288 UChar upper_bit = toUChar (IFIELD (instr, 2, 1));
289 UChar lower_bits = toUChar (IFIELD (instr, 16, 5));
293 /* Extract RB (2nd source register) field, instr[15:11] */
294 static UChar ifieldRegB ( UInt instr ) {
295 return toUChar( IFIELD( instr, 11, 5 ) );
298 /* Extract XB (2nd source register) field, instr[1,15:11] */
299 static UChar ifieldRegXB ( UInt instr )
301 UChar upper_bit = toUChar (IFIELD (instr, 1, 1));
302 UChar lower_bits = toUChar (IFIELD (instr, 11, 5));
306 /* Extract RC (3rd source register) field, instr[10:6] */
307 static UChar ifieldRegC ( UInt instr ) {
308 return toUChar( IFIELD( instr, 6, 5 ) );
311 /* Extract XC (3rd source register) field, instr[3,10:6] */
312 static UChar ifieldRegXC ( UInt instr )
314 UChar upper_bit = toUChar (IFIELD (instr, 3, 1));
315 UChar lower_bits = toUChar (IFIELD (instr, 6, 5));
319 /* Extract bit 10, instr[10] */
320 static UChar ifieldBIT10 ( UInt instr ) {
321 return toUChar( IFIELD( instr, 10, 1 ) );
324 /* Extract 2nd lowest bit, instr[1] */
325 static UChar ifieldBIT1 ( UInt instr ) {
326 return toUChar( IFIELD( instr, 1, 1 ) );
329 /* Extract lowest bit, instr[0] */
330 static UChar ifieldBIT0 ( UInt instr ) {
331 return toUChar( instr & 0x1 );
334 /* Extract unsigned bottom half, instr[15:0] */
335 static UInt ifieldUIMM16 ( UInt instr ) {
336 return instr & 0xFFFF;
339 /* Extract unsigned bottom 26 bits, instr[25:0] */
340 static UInt ifieldUIMM26 ( UInt instr ) {
341 return instr & 0x3FFFFFF;
344 /* Extract DM field, instr[9:8] */
345 static UChar ifieldDM ( UInt instr ) {
346 return toUChar( IFIELD( instr, 8, 2 ) );
349 /* Extract SHW field, instr[9:8] */
350 static inline UChar ifieldSHW ( UInt instr )
352 return ifieldDM ( instr );
6761 vex_printf("dis_fp_load(ppc)(instr,b0)\n");
6905 vex_printf("dis_fp_store(ppc)(instr,b0)\n");
7162 vex_printf("dis_fp_arith(ppc)(instr,fmul)\n");
7758 vex_printf("dis_fp_cmp(ppc)(instr)\n");
7866 vex_printf("dis_fp_round(ppc)(instr)\n");
8099 vex_printf("dis_fp_pair(ppc)(instr)\n");
8144 vex_printf("dis_fp_move(ppc)(instr)\n");
8235 vex_printf("dis_fp_scr(ppc)(instr)\n");
8246 vex_printf("dis_fp_scr(ppc)(instr,mtfsb1)\n");
8262 vex_printf("dis_fp_scr(ppc)(instr,mcrfs)\n");
8282 vex_printf("dis_fp_scr(ppc)(instr,mtfsb0)\n");
8297 vex_printf("dis_fp_scr(ppc)(instr,mtfsfi)\n");
8311 vex_printf("dis_fp_scr(ppc)(instr,mffs)\n");
8386 vex_printf("dis_av_datastream(ppc)(instr)\n");
8433 vex_printf("dis_av_procctl(ppc)(instr)\n");
8480 vex_printf( "dis_vx_conv(ppc)(instr)\n" );
8923 vex_printf( "dis_vxv_dp_arith(ppc)(instr)\n" );
9171 vex_printf( "dis_vxv_sp_arith(ppc)(instr)\n" );
9758 vex_printf( "dis_vxv_misc(ppc)(instr)\n" );
10230 vex_printf( "dis_vxs_arith(ppc)(instr)\n" );
10415 vex_printf( "dis_vx_cmp(ppc)(instr)\n" );
10539 vex_printf( "dis_vvec_cmp(ppc)(instr)\n" );
10634 vex_printf( "dis_vxs_misc(ppc)(instr)\n" );
10792 vex_printf( "dis_vx_logic(ppc)(instr)\n" );
10847 vex_printf( "dis_vx_load(ppc)(instr)\n" );
10937 vex_printf( "dis_vx_store(ppc)(instr)\n" );
11017 vex_printf( "dis_vx_permute_misc(ppc)(instr)\n" );
11140 vex_printf("dis_av_load(ppc)(instr)\n");
11273 vex_printf("dis_av_store(ppc)(instr)\n");
11869 vex_printf("dis_av_cmp(ppc)(instr)\n");
11984 vex_printf("dis_av_multarith(ppc)(instr)\n");
12225 vex_printf("dis_av_shift(ppc)(instr)\n");
12370 vex_printf("dis_av_permute(ppc)(instr)\n");
12545 vex_printf("dis_av_pack(ppc)(instr)\n");
12812 vex_printf("dis_av_fp_arith(ppc)(instr)\n");
12922 vex_printf("dis_av_fp_cmp(ppc)(instr)\n");
13021 vex_printf("dis_av_fp_convert(ppc)(instr)\n");