public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* SUBREGs and modes
@ 2000-08-02  5:49 Jan Hubicka
  2000-08-02  5:58 ` Jakub Jelinek
  2000-08-02  8:39 ` Joern Rennecke
  0 siblings, 2 replies; 7+ messages in thread
From: Jan Hubicka @ 2000-08-02  5:49 UTC (permalink / raw)
  To: gcc; +Cc: jakub

Hi
(except for many other cases), my checker pointed out
weird usage of SUBREGs. According to my uderstanding the docs, when
WORDNUM is nonzero, the  innermode must be greater than word and
the outer mode must be word.

My checker has caught occurences of subregs not matching these constraints
such as:
(subreg:HI (reg:DI ) 1)
in i386.

These happends in early stages of RTL generation and seems to be results of
combining two SUBREGS together. Simplifiers in recog.c and combine.c can't deal
with such SUBREGS when they get constant insode so we at least miss
optimizations.

So the question is, whether are such subregs correct, if so we
should probably docuemnt their semantics and add optimizations, if not,
how to avoid these?

Jakub: Does your (and Davids) SUBREG_BYTE work touch this issue somehow?

Honza

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

end of thread, other threads:[~2000-08-02 12:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-02  5:49 SUBREGs and modes Jan Hubicka
2000-08-02  5:58 ` Jakub Jelinek
2000-08-02  8:39 ` Joern Rennecke
2000-08-02  8:49   ` Jan Hubicka
2000-08-02  9:13     ` Joern Rennecke
2000-08-02  9:30       ` Jan Hubicka
2000-08-02 12:40         ` Geoff Keating

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