Subject: Re: gcc/egcs problem with shifts on i386
To: None <>
From: Sean Doran <>
List: current-users
Date: 08/17/1999 12:36:02
The assembly code egcs emits from cc -S (with or without -O/-O2/-O3) seems
sane - it boils down to:

        movl %esi,%ebx
        sall %cl,%ebx
        jmp .L7
        .align 4
        movl %esi,%ebx
        sarl %cl,%ebx

So the 386 is doing something "interesting".

./shift r 0x7fffffff 34
shr 0x7fffffff, 0x22 -> 0x1fffffff