public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/49088] Combine fails to properly handle zero-extension and signed int constant
Date: Fri, 20 May 2011 18:56:00 -0000	[thread overview]
Message-ID: <bug-49088-4-k5j79uGo1o@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-49088-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-05-20 18:27:51 UTC ---
(gdb) bt
#0  force_to_mode (x=0x7ffff0acbdf8, mode=DImode, mask=4294967294, 
    just_select=0) at /export/gnu/import/git/gcc-x32/gcc/combine.c:8154
#1  0x0000000001121405 in simplify_and_const_int_1 (mode=DImode, 
    varop=0x7ffff0acbdf8, constop=4294967294)
    at /export/gnu/import/git/gcc-x32/gcc/combine.c:9413
#2  0x00000000011216e4 in simplify_and_const_int (x=0x0, mode=DImode, 
    varop=0x7ffff0acbdf8, constop=4294967294)
    at /export/gnu/import/git/gcc-x32/gcc/combine.c:9511
#3  0x0000000001123c57 in simplify_shift_const_1 (code=LSHIFTRT, 
    result_mode=DImode, varop=0x7ffff0acbdf8, orig_count=32)
    at /export/gnu/import/git/gcc-x32/gcc/combine.c:10568
#4  0x0000000001123d45 in simplify_shift_const (x=0x0, code=LSHIFTRT, 
    result_mode=DImode, varop=0x7ffff0acbe10, count=32)
    at /export/gnu/import/git/gcc-x32/gcc/combine.c:10599
#5  0x000000000111a923 in expand_compound_operation (x=0x7ffff0c4ddb0)
    at /export/gnu/import/git/gcc-x32/gcc/combine.c:6916
(gdb) f 5
#5  0x000000000111a923 in expand_compound_operation (x=0x7ffff0c4ddb0)
    at /export/gnu/import/git/gcc-x32/gcc/combine.c:6916
6916          tem = simplify_shift_const (NULL_RTX, unsignedp ? LSHIFTRT :
ASHIFTRT,
(gdb) call debug_rtx (x)
(zero_extend:DI (plus:SI (subreg:SI (reg/f:DI 20 frame) 0)
        (const_int -58 [0xffffffffffffffc6])))
(gdb)


  parent reply	other threads:[~2011-05-20 18:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-20 17:32 [Bug rtl-optimization/49088] New: " hjl.tools at gmail dot com
2011-05-20 17:51 ` [Bug rtl-optimization/49088] " hjl.tools at gmail dot com
2011-05-20 18:56 ` hjl.tools at gmail dot com [this message]
2011-05-20 19:32 ` hjl.tools at gmail dot com
2011-05-20 20:01 ` ebotcazou at gcc dot gnu.org
2011-05-20 20:30 ` hjl.tools at gmail dot com
2011-05-20 21:32 ` hjl.tools at gmail dot com
2011-05-21  2:23 ` hjl.tools at gmail dot com
2011-05-21  5:01 ` hjl.tools at gmail dot com
2011-05-21 13:43 ` hjl.tools at gmail dot com
2011-05-27 13:40 ` hjl at gcc dot gnu.org
2011-06-23 14:53 ` hjl.tools at gmail dot com
2011-06-23 14:58 ` hjl at gcc dot gnu.org

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=bug-49088-4-k5j79uGo1o@http.gcc.gnu.org/bugzilla/ \
    --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).