This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/3990: logical or | within inline assembly cuts off assembly code
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/3990: logical or | within inline assembly cuts off assembly code
- From: jodaman at ee1 dot bradley dot edu
- Date: 10 Aug 2001 23:48:39 -0000
- Reply-To: jodaman at ee1 dot bradley dot edu
>Number: 3990
>Category: c
>Synopsis: logical or | within inline assembly cuts off assembly code
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Aug 10 16:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: jodaman@ee1.bradley.edu
>Release: gcc version 3.0 (Debian)
>Organization:
>Environment:
>Description:
/* GCC 3.0 this to assembly, and behold the eaten code. */
/* (GCC 2.95.2 is not at all voracious with the '|' and */
/* all assembly that follows.) */
/* CodeSourcery's Online Test Compilation ( 2001-06-26) */
/* reveals that gcc 3.0.1 still consumes the code */
int
test()
{
int o;
__asm__
(
"movl $1, %%eax\n\t"
"sall $(1 | 2), %%eax\n\t"
"movl %%eax, %0\n\t"
: "=a" (o)
);
return(o);
}
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: