core/x86/instr.c
/* Shrinks all registers, including addresses, and all immed int and
 * address sizes, to 32 bits 
 */
Shrinks all registers, including addresses, and all immed int and
address sizes, to 32 bits
Shrinks all registers including addresses and all immed int and address sizes to 32 bits
void
instr_shrink_to_32_bits(instr_t *instr)
{
    int i;
    opnd_t opnd;
    CLIENT_ASSERT(instr_operands_valid(instr), "instr_shrink_to_32_bits: invalid opnds");
    for (i=0; i<instr_num_dsts(instr); i++) {
        opnd = instr_get_dst(instr, i);
        if (opnd_is_immed_int(opnd)) {
            CLIENT_ASSERT(opnd_get_immed_int(opnd) <= INT_MAX,
                          "instr_shrink_to_32_bits: immed int will be truncated");
            instr_set_dst(instr, i, opnd_shrink_to_32_bits(opnd));
        }
    }
    for (i=0; i<instr_num_srcs(instr); i++) {
        instr_set_src(instr, i, opnd_shrink_to_32_bits(instr_get_src(instr, i)));
    }
}
void instr_shrink_to_32_bits ( instr_t * instr ) { int i ; opnd_t opnd ; CLIENT_ASSERT ( instr_operands_valid ( instr ) , " " ) ; for ( i = 0 ; i < instr_num_dsts ( instr ) ; i ++ ) { opnd = instr_get_dst ( instr , i ) ; if ( opnd_is_immed_int ( opnd ) ) { CLIENT_ASSERT ( opnd_get_immed_int ( opnd ) <= INT_MAX , " " ) ; instr_set_dst ( instr , i , opnd_shrink_to_32_bits ( opnd ) ) ; } } for ( i = 0 ; i < instr_num_srcs ( instr ) ; i ++ ) { instr_set_src ( instr , i , opnd_shrink_to_32_bits ( instr_get_src ( instr , i ) ) ) ; } }
Shrinks all registers, including addresses, and all immed int and
 address sizes, to 32 bits
Shrinks all registers including addresses and all immed int and address sizes to 32 bits