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 middle-end/18908] Missed folding opportunities with bools


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18908

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #17 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-07-19 13:29:49 UTC ---
Now we get

f1:
.LFB0:
        .cfi_startproc
        movzbl  (%rdi), %eax
        ret
f2:
.LFB1:
        .cfi_startproc
        movzbl  (%rdi), %eax
        ret
f3:
.LFB2:
        .cfi_startproc
        xorb    $1, (%rdi)
        ret
f4:
.LFB3:
        .cfi_startproc
        movb    $1, (%rdi)
        ret


thus, fixed.


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