public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/26439]  New: [4.2 Regression] missing VOPs for complex assignments
@ 2006-02-23 12:13 rguenth at gcc dot gnu dot org
  2006-02-23 12:20 ` [Bug middle-end/26439] " rguenth at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-02-23 12:13 UTC (permalink / raw)
  To: gcc-bugs

_Complex double c;
_Complex double foo(void)
{
  _Complex double *cp = &c;
  __real c = __imag c;
  return *cp;
}

has in alias1:

foo ()
{
  complex double * cp;
  complex double D.1527;
  double D.1526;

<bb 2>:
  cp_1 = &c;
  #   VUSE <SFT.0_2>;
  D.1526_3 = IMAGPART_EXPR <c>;
  #   SFT.1_5 = V_MUST_DEF <SFT.1_4>;
  REALPART_EXPR <c> = D.1526_3;
  #   VUSE <SFT.1_5>;
  D.1527_6 = *cp_1;
  #   <retval>_8 = V_MUST_DEF <<retval>_7>;
  <retval> = D.1527_6;
  #   VUSE <<retval>_8>;
  return <retval>;

}

note how D.1527_6 = *cp_1; misses VUSE <SFT.0_2>


-- 
           Summary: [4.2 Regression] missing VOPs for complex assignments
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: wrong-code, alias
          Severity: critical
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-02-24 18:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-23 12:13 [Bug middle-end/26439] New: [4.2 Regression] missing VOPs for complex assignments rguenth at gcc dot gnu dot org
2006-02-23 12:20 ` [Bug middle-end/26439] " rguenth at gcc dot gnu dot org
2006-02-23 16:03 ` rguenth at gcc dot gnu dot org
2006-02-23 16:16 ` rguenth at gcc dot gnu dot org
2006-02-24 17:32 ` pinskia at gcc dot gnu dot org
2006-02-24 17:34 ` pinskia at gcc dot gnu dot org
2006-02-24 17:36 ` pinskia at gcc dot gnu dot org
2006-02-24 17:38 ` pinskia at gcc dot gnu dot org
2006-02-24 17:47 ` pinskia at gcc dot gnu dot org
2006-02-24 18:23 ` pinskia at gcc dot gnu dot org

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).