This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/36936] New: [4.4 Regression]: Revision 138075 breaks cmove
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2008 15:35:16 -0000
- Subject: [Bug target/36936] New: [4.4 Regression]: Revision 138075 breaks cmove
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[hjl@gnu-6 gcc]$ cat /tmp/c.c
int
foo (int x)
{
if (x < 0)
x = 1;
return x;
}
[hjl@gnu-6 gcc]$ ./xgcc -B./ -m32 -S -O2 /tmp/c.c -march=i686
[hjl@gnu-6 gcc]$ cat c.s
.file "c.c"
.text
.p2align 4,,15
.globl foo
.type foo, @function
foo:
pushl %ebp
movl %esp, %ebp
movl 8(%ebp), %eax
testl %eax, %eax
js .L5
popl %ebp
ret
.p2align 4,,7
.p2align 3
.L5:
movl $1, %eax
popl %ebp
ret
.size foo, .-foo
--
Summary: [4.4 Regression]: Revision 138075 breaks cmove
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjl dot tools at gmail dot com
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36936