This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/41665] Typo in addsi_1_zext?
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Oct 2009 12:13:16 -0000
- Subject: [Bug target/41665] Typo in addsi_1_zext?
- References: <bug-41665-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from ubizjak at gmail dot com 2009-10-11 12:13 -------
(In reply to comment #3)
> case TYPE_LEA:
> operands[2] = SET_SRC (XVECEXP (PATTERN (insn), 0, 0));
> return "lea{l}\t{%a2, %k0|%k0, %a2}";
>
> Won't we get "(zero_extend:DI ...)" for operands[2]? Don't we
> want "(plus:SI ...)" instead?
You are right here. We need to strip ZERO_EXTEND, otherwise
print_operand_address will choke on it. Care to post a patch?
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-10-11 12:13:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41665