public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "brooks at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/30381] ISHFTC() constant folding is broken.
Date: Wed, 10 Jan 2007 05:46:00 -0000	[thread overview]
Message-ID: <20070110054624.30061.qmail@sourceware.org> (raw)
In-Reply-To: <bug-30381-13350@http.gcc.gnu.org/bugzilla/>



------- Comment #2 from brooks at gcc dot gnu dot org  2007-01-10 05:46 -------
Subject: Bug 30381

Author: brooks
Date: Wed Jan 10 05:46:13 2007
New Revision: 120634

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120634
Log:
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.


Added:
    trunk/gcc/testsuite/gfortran.dg/ishft_1.f90
      - copied unchanged from r120594,
trunk/gcc/testsuite/gfortran.dg/ishft.f90
    trunk/gcc/testsuite/gfortran.dg/ishft_2.f90
    trunk/gcc/testsuite/gfortran.dg/ishft_3.f90
Removed:
    trunk/gcc/testsuite/gfortran.dg/ishft.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/simplify.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/chkbits.f90


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30381


  parent reply	other threads:[~2007-01-10  5:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-05  6:04 [Bug fortran/30381] New: " brooks at gcc dot gnu dot org
2007-01-05  6:57 ` [Bug fortran/30381] " brooks at gcc dot gnu dot org
2007-01-10  5:46 ` brooks at gcc dot gnu dot org [this message]
2007-01-10  5:58 ` [Bug fortran/30381] [4.1 and 4.2] " brooks at gcc dot gnu dot org
2007-02-10 16:22 ` fxcoudert at gcc dot gnu dot org
2007-02-16 12:19 ` fxcoudert at gcc dot gnu dot org
2007-02-16 15:57 ` [Bug fortran/30381] [4.1 only] " fxcoudert at gcc dot gnu dot org
2007-06-21 13:09 ` bardeau at iram dot fr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070110054624.30061.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).