> Thanks for the comments. I will compare the two nonzero_bits from src and > REG_EQUAL. Then select the smaller one.
They are masks so you can simply AND them before ORing the result. > Do you know why it use " SET_SRC (set)" other than "src" for > num_sign_bit_copies? > > If it is "src", I should do the same for num_sign_bit_copies with REG_EQUAL > info. Probably historical reasons, let's not try to change that now. You can apply the same treatment to num_sign_bit_copies (you will need a comparison here) while preserving the "src" vs "SET_SRC (set)" discrepancy. -- Eric Botcazou