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 tree-optimization/30966] (long long)(int_var) == (long long)(int_var1) is not simplified down to int_var == int_var1 when "expanded"



------- Comment #1 from rguenth at gcc dot gnu dot org  2007-02-26 17:33 -------
They also don't on x86_64:

f:
.LFB2:
        movslq  %edi,%rdi
        movslq  %esi,%rsi
        cmpq    %rsi, %rdi
        sete    %al
        movzbl  %al, %eax
        ret
.LFE2:
        .size   f, .-f
.globl f1
        .type   f1, @function
f1:
.LFB3:
        cmpl    %esi, %edi
        sete    %al
        movzbl  %al, %eax
        ret

on the tree level this is a missing tree-combiner bug.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-02-26 17:33:12
               date|                            |


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


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