From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9507 invoked by alias); 27 Feb 2004 16:56:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 9496 invoked by uid 48); 27 Feb 2004 16:56:39 -0000 Date: Fri, 27 Feb 2004 16:56:00 -0000 Message-ID: <20040227165639.9495.qmail@sources.redhat.com> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040227162515.14322.ehrhardt@mathematik.uni-ulm.de> References: <20040227162515.14322.ehrhardt@mathematik.uni-ulm.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug target/14322] Unrecognizable lo_sum insn with -m64 and -fPIC X-Bugzilla-Reason: CC X-SW-Source: 2004-02/txt/msg02636.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-27 16:56 ------- I can confirm this on the tree-ssa branch (I have not tried the mainline) but this patch fixes it but I do not know if the right thing to do. But it parallels the other uses of UNSPEC_MOVE_PIC. Index: sparc.md =============================================================== ==== RCS file: /cvs/gcc/gcc/gcc/config/sparc/sparc.md,v retrieving revision 1.175.2.12 diff -u -p -r1.175.2.12 sparc.md --- sparc.md 13 Feb 2004 13:13:21 -0000 1.175.2.12 +++ sparc.md 27 Feb 2004 16:53:52 -0000 @@ -1938,7 +1938,7 @@ (define_insn "movsi_lo_sum_pic" [(set (match_operand:SI 0 "register_operand" "=r") (lo_sum:SI (match_operand:SI 1 "register_operand" "r") - (unspec:SI [(match_operand:SI 2 "immediate_operand" "in")] UNSPEC_MOVE_PIC)))] + (unspec:SI [(match_operand:SI 2 "" "")] UNSPEC_MOVE_PIC)))] "flag_pic" "or\t%1, %%lo(%a2), %0") @@ -2240,7 +2240,7 @@ (define_insn "movdi_lo_sum_pic" [(set (match_operand:DI 0 "register_operand" "=r") (lo_sum:DI (match_operand:DI 1 "register_operand" "r") - (unspec:DI [(match_operand:DI 2 "immediate_operand" "in")] UNSPEC_MOVE_PIC)))] + (unspec:DI [(match_operand:DI 2 "" "")] UNSPEC_MOVE_PIC)))] "TARGET_ARCH64 && flag_pic" "or\t%1, %%lo(%a2), %0") -- What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |ice-on-valid-code, RTL Known to fail| |tree-ssa Last reconfirmed|0000-00-00 00:00:00 |2004-02-27 16:56:39 date| | Target Milestone|--- |tree-ssa http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14322