This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/14322] Unrecognizable lo_sum insn with -m64 and -fPIC
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Feb 2004 16:56:39 -0000
- Subject: [Bug target/14322] Unrecognizable lo_sum insn with -m64 and -fPIC
- References: <20040227162515.14322.ehrhardt@mathematik.uni-ulm.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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