public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "wmi at google dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/67443] [5/6 regression] DSE removes required store instruction
Date: Tue, 08 Sep 2015 05:02:00 -0000	[thread overview]
Message-ID: <bug-67443-4-wPnyxk2Z4X@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-67443-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67443

--- Comment #1 from wmi at google dot com ---
Seems the patch makes some problem exposed. 

For the testcase 1.cxx below:

typedef struct A {
  unsigned i : 8;
  unsigned j : 24;
} A;

void foo(A *a) {
  a->i = 3;
  a->j = 5;
}

The rtl generated by s390x-ibm-linux-g++ seems wrong.

~/workarea/gcc-r227524/build/install/bin/s390x-ibm-linux-g++ -O2 -S 1.cxx
-fdump-rtl-expand-details-blocks

(note 4 1 2 2 [bb 2] NOTE_INSN_BASIC_BLOCK)
(insn 2 4 3 2 (set (reg/v/f:DI 60 [ a ])
        (reg:DI 2 %r2 [ a ])) 4.cxx:6 -1
     (nil))
(note 3 2 6 2 NOTE_INSN_FUNCTION_BEG)
(insn 6 3 8 2 (set (mem/j:QI (reg/v/f:DI 60 [ a ]) [1 a_2(D)->i+0 S1 A32])
        (const_int 3 [0x3])) 4.cxx:7 -1
     (nil))
(insn 8 6 9 2 (set (reg:SI 62)
        (mem/j:SI (reg/v/f:DI 60 [ a ]) [1 a_2(D)->j+-1 S4 A32])) 4.cxx:8 -1
     (nil))
(insn 9 8 10 2 (parallel [
            (set (reg:SI 63)
                (and:SI (reg:SI 62)
                    (const_int -16777216 [0xffffffffff000000])))
            (clobber (reg:CC 33 %cc))
        ]) 4.cxx:8 -1
     (nil))
(insn 10 9 11 2 (parallel [
            (set (reg:SI 64)
                (ior:SI (reg:SI 63)
                    (const_int 5 [0x5])))
            (clobber (reg:CC 33 %cc))
        ]) 4.cxx:8 -1
     (nil))
(insn 11 10 0 2 (set (mem/j:SI (reg/v/f:DI 60 [ a ]) [1 a_2(D)->j+-1 S4 A32])
        (reg:SI 64)) 4.cxx:8 -1
     (nil))
;;  succ:       EXIT [100.0%]  (FALLTHRU)


  parent reply	other threads:[~2015-09-08  5:02 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-03  7:57 [Bug rtl-optimization/67443] New: " krebbel at gcc dot gnu.org
2015-09-03  8:19 ` [Bug rtl-optimization/67443] [5/6 regression] " rguenth at gcc dot gnu.org
2015-09-08  5:02 ` wmi at google dot com [this message]
2015-09-08  5:33 ` wmi at google dot com
2015-10-14 16:27 ` vogt at linux dot vnet.ibm.com
2015-10-14 16:40 ` vogt at linux dot vnet.ibm.com
2015-10-14 16:41 ` vogt at linux dot vnet.ibm.com
2015-10-14 21:32 ` vogt at linux dot vnet.ibm.com
2015-10-14 21:35 ` vogt at linux dot vnet.ibm.com
2015-10-15 10:04 ` vogt at linux dot vnet.ibm.com
2015-10-15 10:13 ` vogt at linux dot vnet.ibm.com
2015-10-17 19:25 ` wmi at google dot com
2015-10-18 18:55 ` wmi at google dot com
2015-10-18 19:54 ` vogt at linux dot vnet.ibm.com
2015-10-18 20:58 ` vogt at linux dot vnet.ibm.com
2015-10-20  9:13 ` rguenth at gcc dot gnu.org
2015-10-20 13:13 ` vogt at linux dot vnet.ibm.com
2015-10-20 13:32 ` rguenther at suse dot de
2015-10-21  0:11 ` vogt at linux dot vnet.ibm.com
2015-10-21  0:12 ` vogt at linux dot vnet.ibm.com
2015-10-23 10:27 ` vogt at linux dot vnet.ibm.com
2015-10-26 15:25 ` rguenth at gcc dot gnu.org
2015-10-26 15:26 ` [Bug rtl-optimization/67443] [5 " rguenth 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-67443-4-wPnyxk2Z4X@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).