This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/29793] TESTW{W,L,Q} rCX + JZ/JE should be replaced by J{,E,R}CXZ when possible
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Nov 2006 11:18:42 -0000
- Subject: [Bug target/29793] TESTW{W,L,Q} rCX + JZ/JE should be replaced by J{,E,R}CXZ when possible
- References: <bug-29793-10309@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from ubizjak at gmail dot com 2006-11-10 11:18 -------
Following asm illustrates the problem:
.file "jcx.c"
.text
.p2align 4,,15
.globl blah
.type blah, @function
blah:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
jecxz .L4
.space 128
call abort
.L4:
leave
ret
.size blah, .-blah
.ident "GCC: (GNU) 4.3.0 20061110 (experimental)"
.section .note.GNU-stack,"",@progbits
You can try to assemble this...
--
ubizjak at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29793