This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/30966] (long long)(int_var) == (long long)(int_var1) is not simplified down to int_var == int_var1 when "expanded"
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Feb 2007 17:33:12 -0000
- Subject: [Bug tree-optimization/30966] (long long)(int_var) == (long long)(int_var1) is not simplified down to int_var == int_var1 when "expanded"
- References: <bug-30966-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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