This is the mail archive of the gcc-patches@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: [PATCH, i386]: Handle subregs of AND zero extended address correctly


On Tue, Mar 13, 2012 at 9:21 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
> Hello!
>
> We allow addresses, zero extended with (AND (Dimode OP)
> (0x0ffffffff)). Since we now track address mode precisely, we should
> convert this operand to a SImode subreg before passing it further down
> of ix86_decompose_address function. This fixes a small hole, where
> operands in wrong mode could squeeze through.
>
> 2012-03-13 ?Uros Bizjak ?<ubizjak@gmail.com>
>
> ? ? ? ?* config/i386/i386.c (ix86_decompose_address): Handle subregs of
> ? ? ? ?AND zero extended address correctly.
>
> Tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN.

I think this caused:

FAIL: gcc.target/i386/pr43766.c scan-assembler-not lea[lq]?[ \t]

with -mx32 on Linux/x86-64.

-- 
H.J.


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