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]

Re: RTL AND Instruction


Matt Davis <mattdavis9@gmail.com> writes:

> What I have in my source is the following:
>
>     rtx eax = gen_rtx_REG(DImode, 0);
>     rtx and = gen_rtx_AND(DImode, eax, gen_rtx_CONST_INT(VOIDmode, 7));
>     and = gen_rtx_SET(DImode, eax, and);
>     emit_insn_before(and, insn);

This is normally not what you want to do.  If you know that your target
has a DImode and instruction, then you normally want to call gen_anddi3.
If you don't know whether it does, then you generally want to call
expand_binop.

Ian


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