This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RTL AND Instruction
- From: Ian Lance Taylor <iant at google dot com>
- To: Matt Davis <mattdavis9 at gmail dot com>
- Cc: gcc at gnu dot org
- Date: Sat, 21 Jan 2012 23:47:17 -0800
- Subject: Re: RTL AND Instruction
- References: <20120122052112.GA8463@excelsa.wimax>
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