This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
A question abt finding all register uses in instruction
- From: Revital Eres <revital dot eres at linaro dot org>
- To: gcc at gcc dot gnu dot org
- Cc: Ramana Radhakrishnan <ramana dot radhakrishnan at linaro dot org>
- Date: Mon, 24 Oct 2011 14:11:48 +0200
- Subject: 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