This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/59946] -mpcrel -O2 produces illegal asm code


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59946

--- Comment #3 from Jeffrey A. Law <law at redhat dot com> ---
The m68000 does not support compare imm,pc-relative.  Sadly the various
comparison patterns play things fast and loose in terms of what order they emit
their operands.  That makes it nontrivial to write operand predicates and
constraints which would allow the PC-relative addresses.

I think the best solution is going to be to disallow pc-relative memory
addresses in the comparison patterns/expanders.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]