[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Incorrect shift result type with 64-bit ABI
From: |
Vincent Lefevre |
Subject: |
Re: [Tinycc-devel] Incorrect shift result type with 64-bit ABI |
Date: |
Wed, 27 Jun 2012 13:31:44 +0200 |
User-agent: |
Mutt/1.5.21-6205-vl-r52214 (2012-05-24) |
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 <address@hidden> - 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)
tcc-shift-type.patch
Description: Text document