[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#181096: gcc-3.2: gcc fails to optimise if (l&2) l|=2 away



On Fri, Feb 21, 2003 at 04:26:04PM +0100, Matthias Klose wrote:
> please always include information about the status of the gcc-snapshot
> package as well.

This is what the snapshot produces

	.file	"b.c"
	.text
	.p2align 2,,3
.globl k
	.type	k, @function
k:
	pushl	%ebp
	movl	%esp, %ebp
	movl	8(%ebp), %eax
	testb	$2, %al
	je	.L2
	orl	$2, %eax
.L2:
	leave
	ret
	.size	k, .-k
	.ident	"GCC: (GNU) 3.3 20030129 (prerelease)"

As you can see, it is still testing and setting.
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



Reply to: