[fortran, patch] Add new bit intrinsics
Tobias Burnus
burnus@net-b.de
Wed Sep 8 11:56:00 GMT 2010
On 09/08/2010 02:01 AM, FX wrote:
> The attached patch adds the remaining F2008 bit intrinsics: DSHIFTL, DSHIFTR, SHIFTA, SHIFTL, SHIFTR, MASKL, MASKR, BGE, BGT, BLE, BLT, and MERGE_BITS.
>
> All come with compile-time simplification routines for constant arguments. Otherwise, all intrinsics are implemented by emitting the code directly from trans-intrinsic.c, without any library function. I have also gathered code-generating and simplification functions for the previsouly existing shift intrinsics (ISHFT, LSHIFT, RSHIFT; the last two currently don't have compile-time simplification).
>
> I think all functions are thoroughly tested through multiple testcases.
>
> Regtested on x86_64-linux (both -m32 and -m64), OK to commit?
/* Selects bewteen current value and extremum for simplify_min_max
Can you change "bewteen" to "between" in simplify.c (old typo).
Otherwise, I have not spotted any problem - thus, I hope there are none
and give hence an: OK.
(I wouldn't mind if someone else could also browse the source - one can
easily miss copy'n'paste errors.)
Tobias
More information about the Fortran
mailing list