This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

A question abt finding all register uses in instruction


Hello,

I am trying to extract the regsiter uses in instructions using note_uses
function. When encountering the following instruction I do not get r479
as a use; seemingly because of the following in note_use function:

       if (GET_CODE (dest) == ZERO_EXTRACT)
          {
            (*fun) (&XEXP (dest, 1), data);
            (*fun) (&XEXP (dest, 2), data);
          }

the instruction:

(insn 386 385 387 16 (set (zero_extract:SI (reg:SI 479)
            (const_int 16 [0x10])
            (const_int 16 [0x10]))
        (const_int 4112 [0x1010])) 343 {*arm_movtas_ze}
     (nil))

I appreciate any advise of how to resolve this -- should I add

  (*fun) (&XEXP (dest, 0), data); ?

Thanks,
Revital


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]