[fortran, patch] Add new bit intrinsics
FX
fxcoudert@gmail.com
Wed Sep 8 01:54:00 GMT 2010
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?
FX
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bit_intrinsics.ChangeLog
Type: application/octet-stream
Size: 2170 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100908/c78c1b39/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bit_intrinsics.diff
Type: application/octet-stream
Size: 85598 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100908/c78c1b39/attachment-0001.obj>
More information about the Fortran
mailing list