On Tue, Mar 6, 2012 at 8:44 PM, H.J. Lu <hjl.to...@gmail.com> wrote:
>>> This is the last patch for Pmode == SImod in x32. In x32, the return value
>>> of the symbol address must be zero-extended to DImode, This patch adds
>>> *zero_extendsidi2_x32 to load the address of a symbol in SImode and
>>> zero-extend it to DImode. It works for x32 since the address size is 32bit.
>>> OK for trunk?
>> Can you please try attached patch instead? It enhances existing insn
>> pattern with required functionality.
> It works. Thanks.
Committed to mainline with following ChangeLog:
2012-03-07 Uros Bizjak <ubiz...@gmail.com>
* config/i386/predicates.md (x86_64_zext_general_operand): New.
* config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
predicate to x86_64_zext_general_operand. Accept "Z" constraint.
Tested on x86_64-pc-linux-gnu.