This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/49721] convert_memory_address_addr_space may generate invalid new insns
- 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: Thu, 28 Jul 2011 21:27:54 +0000
- Subject: [Bug middle-end/49721] convert_memory_address_addr_space may generate invalid new insns
- Auto-submitted: auto-generated
- References: <bug-49721-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49721
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-07-28 21:27:33 UTC ---
The question is we have
(zero_extend:DI (plus:SI (FOO:SI) (const_int Y)))
Is is OK to transform it to
(plus:DI (zero_extend:DI (FOO:SI)) (const_int Y))
The current convert_memory_address_addr_space does
transformation if Y > 0. It makes no sense not to
transform it if Y < 0.