This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/24810] [4.1/4.2 Regression] mov + mov + testl generated instead of testb
- From: "dann at godzilla dot ics dot uci dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Dec 2005 22:57:56 -0000
- Subject: [Bug rtl-optimization/24810] [4.1/4.2 Regression] mov + mov + testl generated instead of testb
- References: <bug-24810-1008@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from dann at godzilla dot ics dot uci dot edu 2005-12-18 22:57 -------
(In reply to comment #5)
> Simplified testcase seems to work for me on 4.1 branch:
> restore_fpu:
> movl 4(%esp), %edx
> movl boot_cpu_data+12, %eax
> testl $16777216, %eax
4.0 still does better, it uses a single "testb" instruction instead of 2
dependent
movl + testb instructions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24810