This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/49833] [x32] PIC doesn't work
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 25 Jul 2011 16:15:44 +0000
- Subject: [Bug target/49833] [x32] PIC doesn't work
- Auto-submitted: auto-generated
- References: <bug-49833-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49833
--- Comment #6 from H.J. Lu <hjl.tools at gmail dot com> 2011-07-25 16:15:31 UTC ---
(In reply to comment #4)
> A shot-in-the-dark change:
>
> (define_insn "*add<mode>_1"
> [(set (match_operand:SWI48 0 "nonimmediate_operand" "=r,rm,r,r")
> (plus:SWI48
> (match_operand:SWI48 1 "nonimmediate_operand" "%0,0,r,r")
> (match_operand:SWI48 2 "<add_operand>" "rme,re,0,le")))
> (clobber (reg:CC FLAGS_REG))]
>
> and
>
> (define_insn "addsi_1_zext"
> [(set (match_operand:DI 0 "register_operand" "=r,r,r")
> (zero_extend:DI
> (plus:SI (match_operand:SI 1 "nonimmediate_operand" "%0,r,r")
> (match_operand:SI 2 "addsi_operand" "rme,0,le"))))
> (clobber (reg:CC FLAGS_REG))]
>
> The constraints of operand 2 now fully follow addsi_operand predicate.
It doesn't work.