From: Jan Hubicka <jh@suse.cz>
To: Jan Hubicka <jh@suse.cz>
Cc: Eric Botcazou <ebotcazou@libertysurf.fr>, gcc@gcc.gnu.org
Subject: Re: Reload bug
Date: Thu, 10 Apr 2003 16:35:00 -0000 [thread overview]
Message-ID: <20030410154730.GH9319@kam.mff.cuni.cz> (raw)
In-Reply-To: <20030410153230.GD9319@kam.mff.cuni.cz>
> > > Concerning this testcase, the reload used to manage to get around this
> > > problem. It didn't get around intentionally and just because the
> > > instruction contrain does not accept SSE register so reload is needed
> > > anyway.
> >
> > I think you're completely right: the reload pass has no specific
> > infrastructure for dealing with invalid subregs. It may "fix" these subregs,
> > but only if it happens that the operand needs reloading because of the insn
> > constraints.
> >
> > I now have an example: PR target/10286
> >
> > We pass
> >
> > (insn 33 30 35 (set (subreg:SI (reg/v:DI 67) 4)
> > (mem/f:SI (plus:SI (reg/f:SI 16 argp)
> > (const_int 4 [0x4])) [0 hi+0 S4 A32])) 45 {*movsi_1}
> > (insn_list 30 (nil))
> >
> > to reload, which produces
> >
> > (insn 33 30 35 (set (reg:SI 29 emm0)
> > (mem/f:SI (plus:SI (reg/f:SI 6 ebp)
> > (const_int 12 [0xc])) [0 hi+0 S4 A32])) 45 {*movsi_1}
> > (insn_list 30 (nil))
> > (nil))
> >
> > that is, the only reload for insn 33 is
> >
> > Reloads for insn # 33
> > Reload 0: reload_in (SI) = (mem/f:SI (plus:SI (reg/f:SI 6 ebp)
> > (const_int 12 [0xc]))
> > [0 hi+0 S4 A32])
> > GENERAL_REGS, RELOAD_FOR_INPUT (opnum = 1), optional
> > reload_in_reg: (mem/f:SI (plus:SI (reg/f:SI 6 ebp)
> > (const_int 12 [0xc]))
> > [0 hi+0 S4 A32])
> >
> >
> > Incidentally, PR target/10286 is a regression from GCC 3.2 present in
> > GCC 3.2.1 and later. The culprit is this patch:
> >
> > Sat Oct 19 15:49:14 CEST 2002 Jan Hubicka <jh@suse.cz>
> >
> > * mmintrin.h (__m64): typedef it to v2si.
> > (_mm_cvtsi32_si64, _mm_cvtsi32_si64_mm_sll_pi16,
> > _mm_sll_pi32, _mm_sll_pi64, _mm_slli_pi64, _mm_sra_pi16,
> > _mm_sra_pi32, _mm_srl_pi16, _mm_srl_pi32, _mm_srl_pi64,
> > _mm_srli_pi64, _mm_and_si64, _mm_andnot_si64,
> > _mm_or_si64, _mm_xor_si64): Add neccesary casts.
> > * xmmintrin.h (_mm_setzero_si64): Likewise.
> >
> > See http://gcc.gnu.org/ml/gcc-patches/2002-10/msg01091.html
> >
> > Before the patch, __m64 was defined as 'unsigned long long' so (%eax, %edx)
> > was used instead of %rmm0 and we didn't produce invalid subregs. I think
> > this patch has opened a can of worms and the MMX intrinsics are seriously
> > broken on the 3.2 branch now.
>
> They always have been - I've fixed 50+ different bugs exposed by simple
> testsuite executing each individual intrincisc with few diferent args,
> so I would not brother about this on the 3.2. 3.3 is different issue
> and should be the first GCC where intrincisc are generaly usable. I
> hope.
>
> Will look into this in the detail this evening, now I have about -10
> minutes of time. Thanks!
Perhaps I would vote for simply disabling the xmm intrincisc support in
the 3.2.x compiler by adding #error into the headers. It is better than
confusing user by completely broken interface especially one so dificult
to use as xmm/mmx intrincisc are.
Honza
>
> Honza
> >
> > --
> > Eric Botcazou
next prev parent reply other threads:[~2003-04-10 15:47 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-08 18:52 Eric Botcazou
2003-04-08 23:16 ` Jan Hubicka
2003-04-09 0:44 ` Jan Hubicka
2003-04-09 7:00 ` Eric Botcazou
2003-04-09 3:00 ` Eric Botcazou
2003-04-09 9:49 ` Jan Hubicka
2003-04-09 8:57 ` Eric Botcazou
2003-04-09 9:45 ` Jan Hubicka
2003-04-09 9:50 ` Eric Botcazou
2003-04-09 14:52 ` Jan Hubicka
2003-04-09 18:10 ` Eric Botcazou
2003-04-09 19:15 ` Jan Hubicka
2003-04-10 14:25 ` Eric Botcazou
2003-04-10 16:31 ` Jan Hubicka
2003-04-10 16:35 ` Jan Hubicka [this message]
2003-04-10 20:21 ` Eric Botcazou
2003-04-10 20:43 ` Jan Hubicka
2003-04-11 14:44 ` Eric Botcazou
2003-04-11 17:49 ` Jan Hubicka
2003-04-11 18:09 ` Jan Hubicka
2003-04-11 19:01 ` Jan Hubicka
2003-04-11 19:07 ` Jan Hubicka
2003-04-12 14:55 ` Eric Botcazou
2003-04-12 17:45 ` Jan Hubicka
2003-04-13 19:57 ` Eric Botcazou
2003-04-13 20:04 ` Jan Hubicka
2003-04-12 17:55 ` Make reload to avoid invalid subregs Jan Hubicka
2003-04-17 22:32 ` Richard Henderson
2003-04-10 20:51 ` Reload bug Dale Johannesen
2003-04-09 9:13 ` Eric Botcazou
2003-04-09 11:25 ` Jan Hubicka
2003-04-09 12:04 ` Eric Botcazou
2003-04-09 18:05 ` Jan Hubicka
2003-04-09 18:26 ` Eric Botcazou
2003-04-09 21:23 ` Richard Henderson
-- strict thread matches above, loose matches on Subject: below --
1999-09-01 8:40 Andreas Schwab
1999-09-02 0:32 ` Jeffrey A Law
1999-09-02 2:15 ` Andreas Schwab
1999-09-30 18:02 ` Andreas Schwab
1999-09-30 18:02 ` Jeffrey A Law
1999-09-30 18:02 ` Andreas Schwab
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=20030410154730.GH9319@kam.mff.cuni.cz \
--to=jh@suse.cz \
--cc=ebotcazou@libertysurf.fr \
--cc=gcc@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).