aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/lib/java
diff options
context:
space:
mode:
authorBrooks Moses <brooks.moses@codesourcery.com>2007-01-10 05:46:13 +0000
committerBrooks Moses <brooks@gcc.gnu.org>2007-01-09 21:46:13 -0800
commitf1dcb9bf3b6a96a117836e6787fa4d49c87ad995 (patch)
tree23ccb0abe794245c81bad05c2acfc7144098c78a /libjava/classpath/lib/java
parente1f1d97f19dc76735e2a6ac743ee31e545264969 (diff)
downloadgcc-f1dcb9bf3b6a96a117836e6787fa4d49c87ad995.zip
gcc-f1dcb9bf3b6a96a117836e6787fa4d49c87ad995.tar.gz
gcc-f1dcb9bf3b6a96a117836e6787fa4d49c87ad995.tar.bz2
re PR fortran/30381 ([4.1 only] ISHFTC() constant folding is broken.)
PR 30381 PR 30420 * fortran/simplify.c (convert_mpz_to_unsigned): New function. (convert_mpz_to_signed): New function, largely based on twos_complement(). (twos_complement): Removed. (gfc_simplify_ibclr): Add conversions to and from an unsigned representation before bit-twiddling. (gfc_simplify_ibset): Same. (gfc_simplify_ishftc): Add checks for overly large constant arguments, only check the third argument if it's present, carry over high bits into the result as appropriate, and perform the final conversion back to a signed representation using the correct sign bit. (gfc_simplify_not): Removed unnecessary masking. * testsuite/gfortran.dg/ * chkbits.f90: Added IBCLR tests; test calls for different integer kinds. * ishft.f90: Renamed to ishft_1.f90... * ishft_1.f90: ...Renamed from ishft.f90. * ishft_2.f90: New test. * ishft_3.f90: New test. From-SVN: r120634
Diffstat (limited to 'libjava/classpath/lib/java')
0 files changed, 0 insertions, 0 deletions