This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/36055] Missed optimsation of QI register loads
- From: "hutchinsonandy at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 May 2008 12:58:05 -0000
- Subject: [Bug target/36055] Missed optimsation of QI register loads
- References: <bug-36055-16013@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from hutchinsonandy at gcc dot gnu dot org 2008-05-04 12:58 -------
A testcase is difficult since it cannot be isolate from other optimisations.
The the problem is "obvious". It can be seen by doing RTL dump and looking at
preferred register classes.
Any source operand that can take register or immediate value should use "rL"
before any "i" constraint. L is zero, which can be loaded into any destination
and does not require the destination to be "d" class register used for other
immediate values.
There may be other instance of this in other patterns.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36055