This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c/3990: logical or | within inline assembly cuts off assembly code



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]