Incorrect shift result type with 64-bit ABI
Incorrect shift result type with 64-bit ABI

On 2012-06-26 15:07:57 +0200, Vincent Lefevre wrote:
> ISO C99 TC3 says: [6.5.7#3] "The integer promotions are performed on
> each of the operands. The type of the result is that of the promoted
> left operand."

I've written a patch (attached). Now the shift problems no longer
occur with the testcase and with GNU MPFR's "make check".

--
Vincent Lefèvre <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

fstudio/tinycc,andrewchambers/tccmirror,soywiz/tinycc,soywiz/tinycc,FriedBreakfast/tcc,andrewchambers/tccmirror,Archs/TinyCC,Archs/TinyCC,acook/tinycc,metaeducation/tcc,metaeducation/tcc,mirror/tinycc,leeduhem/tinycc,acook/tinycc,mitake/tinycc,gfwilliams/tinycc,avih/tinycc,run4flat/tinycc,alfonsokim/tinycc,mobiphil/tinnycc,code4game/tinycc,seyko2/tinycc,Saectar/inherpreter,melkior/tinycc,acook/tinycc,mingodad/tinycc,fstudio/tinycc,andreiw/tinycc,leeduhem/tinycc,mirror/tinycc,andrewchambers/tccmirror,mitake/tinycc,FriedBreakfast/tcc,leeduhem/tinycc,mingodad/tinycc,melkior/tinycc,Saectar/inherpreter,FriedBreakfast/tcc,run4flat/tinycc,melkior/tinycc,Saectar/inherpreter,avih/tinycc,andreiw/tinycc,mirror/tinycc,alfonsokim/tinycc,mitake/tinycc,mobiphil/tinnycc,mingodad/tinycc,seyko2/tinycc,mitake/tinycc,soywiz/tinycc,mirror/tinycc,seyko2/tinycc,Saectar/inherpreter,avih/tinycc,yousong/tinycc,FriedBreakfast/tcc,metaeducation/tcc,melkior/tinycc,rchandramouli/tinycc,run4flat/tinycc,soywiz/tinycc,seyko2/tinycc,melkior/tinycc,ftdi-paul-jiao/tinyCC,leeduhem/tinycc,rchandramouli/tinycc,andrewchambers/tccmirror,yousong/tinycc,FriedBreakfast/tcc,fstudio/tinycc,run4flat/tinycc,avih/tinycc,alfonsokim/tinycc,Saectar/inherpreter,acook/tinycc,yousong/tinycc,metaeducation/tcc,mobiphil/tinnycc,code4game/tinycc,mingodad/tinycc,gfwilliams/tinycc,gfwilliams/tinycc,rchandramouli/tinycc,yousong/tinycc,seyko2/tinycc,gfwilliams/tinycc,fstudio/tinycc,run4flat/tinycc,ftdi-paul-jiao/tinyCC,ftdi-paul-jiao/tinyCC,code4game/tinycc,andreiw/tinycc,rchandramouli/tinycc,gfwilliams/tinycc,andrewchambers/tccmirror,alfonsokim/tinycc,Archs/TinyCC,rchandramouli/tinycc,Archs/TinyCC,ftdi-paul-jiao/tinyCC,metaeducation/tcc,leeduhem/tinycc,Archs/TinyCC,alfonsokim/tinycc,mobiphil/tinnycc,fstudio/tinycc