Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* MPEG 3 on Linux/Alpha
@ 1998-09-15 16:05 Roman Martonak
  1998-09-15 16:18 ` Jeff Noxon
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Roman Martonak @ 1998-09-15 16:05 UTC (permalink / raw)
  To: axp-list

Does anybody know how to play MPEG3 audio files on Linux Alpha ?

		Thanks a lot,
				Roman Martonak.
				
--------------------------------------------------------------------------------
Roman Martonak
Max-Planck-Institut fuer Festkoerperforschung
Heisenbergstrasse 1
D-70569 Stuttgart
Germany

Phone: + 49 711 6891756
Fax: + 49 711 6891702

e-mail: martonak@prr.mpi-stuttgart.mpg.de


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

* Re: MPEG 3 on Linux/Alpha
  1998-09-15 16:05 MPEG 3 on Linux/Alpha Roman Martonak
@ 1998-09-15 16:18 ` Jeff Noxon
  1998-09-15 16:38   ` Adrian Gartland
  1998-09-15 16:44   ` MPEG 3 on Linux/Alpha Linus
  1998-09-15 17:02 ` MPEG 3 on Linux/Alpha Joakim Roubert
  1998-09-15 18:00 ` B. James Phillippe
  2 siblings, 2 replies; 17+ messages in thread
From: Jeff Noxon @ 1998-09-15 16:18 UTC (permalink / raw)
  To: axp-list

On Tue, Sep 15, 1998 at 06:05:32PM +0200, Roman Martonak wrote:
> Does anybody know how to play MPEG3 audio files on Linux Alpha ?

amp, splay, and other should work...

Does anyone know how to *encode* MP3 files on Linux/Alpha?  (Does anyone
still have source code for 8hz?)

Thanks

Jeff


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

* Re: MPEG 3 on Linux/Alpha
  1998-09-15 16:18 ` Jeff Noxon
@ 1998-09-15 16:38   ` Adrian Gartland
  1998-09-17 12:35     ` Bibek Sahu
  1998-09-15 16:44   ` MPEG 3 on Linux/Alpha Linus
  1 sibling, 1 reply; 17+ messages in thread
From: Adrian Gartland @ 1998-09-15 16:38 UTC (permalink / raw)
  To: axp-list

On Tue, 15 Sep 1998, Jeff Noxon wrote:

> On Tue, Sep 15, 1998 at 06:05:32PM +0200, Roman Martonak wrote:
> > Does anybody know how to play MPEG3 audio files on Linux Alpha ?
> 
> amp, splay, and other should work...
> 
> Does anyone know how to *encode* MP3 files on Linux/Alpha?  (Does anyone
> still have source code for 8hz?)
> 

I have something called "encode" which I got some time
ago...from somewhere. Needed a little hacking of the
Makefile to make it compile for alpha, but it works.

Can stick a hacked-for-linux-alpha .tgz on here if people 
want it.
-- 
Adrian Gartland              [Email:         ade@oregan.net]
Software Engineer            [WWW:   http://www.oregan.net/]
Oregan Networks              [Phone:     +44 (0)1530 563311]


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

* Re: MPEG 3 on Linux/Alpha
  1998-09-15 16:18 ` Jeff Noxon
  1998-09-15 16:38   ` Adrian Gartland
@ 1998-09-15 16:44   ` Linus
  1998-09-16 10:49     ` MPEG 3 on Linux/Alpha (player src.) Seppo Saario
  1 sibling, 1 reply; 17+ messages in thread
From: Linus @ 1998-09-15 16:44 UTC (permalink / raw)
  To: axp-list

On Tue, 15 Sep 1998, Jeff Noxon wrote:
A program called encoder has worked for me.
it avaiable at ftp://wopr.campus.luth.se/pub/mpeg_layer_3/

> On Tue, Sep 15, 1998 at 06:05:32PM +0200, Roman Martonak wrote:
> > Does anybody know how to play MPEG3 audio files on Linux Alpha ?
> 
> amp, splay, and other should work...
> 
> Does anyone know how to *encode* MP3 files on Linux/Alpha?  (Does anyone
> still have source code for 8hz?)
> 
> Thanks
> 
> Jeff
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 

/Linus Haapanen

Demokrati krver opinionsbildning.

_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
"If that makes any sense to you, you have a big problem."
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-



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

* Re: MPEG 3 on Linux/Alpha
  1998-09-15 16:05 MPEG 3 on Linux/Alpha Roman Martonak
  1998-09-15 16:18 ` Jeff Noxon
@ 1998-09-15 17:02 ` Joakim Roubert
  1998-09-15 18:00 ` B. James Phillippe
  2 siblings, 0 replies; 17+ messages in thread
From: Joakim Roubert @ 1998-09-15 17:02 UTC (permalink / raw)
  To: axp-list

On Tue, 15 Sep 1998, Roman Martonak wrote:

> Does anybody know how to play MPEG3 audio files on Linux Alpha ?

mpg123 works just great.
You can get nice sources at ftp.wopr.campus.luth.se/pub/axp/

/Jokke tmw.
···
 http://www.efd.lth.se/~d97jro/


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

* Re: MPEG 3 on Linux/Alpha
  1998-09-15 16:05 MPEG 3 on Linux/Alpha Roman Martonak
  1998-09-15 16:18 ` Jeff Noxon
  1998-09-15 17:02 ` MPEG 3 on Linux/Alpha Joakim Roubert
@ 1998-09-15 18:00 ` B. James Phillippe
  2 siblings, 0 replies; 17+ messages in thread
From: B. James Phillippe @ 1998-09-15 18:00 UTC (permalink / raw)
  To: axp-list

On Tue, 15 Sep 1998, Roman Martonak wrote:

> Does anybody know how to play MPEG3 audio files on Linux Alpha ?

I just compiled and installed mpg123-0.59o last night and it works very
well.  I made an RPM compiled with egcs-1.1 at
ftp://ftp.terran.org/pub/RPMS/alpha-glibc/mpg123-0.59o-1.alpha.rpm

cheers,
-bp
--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGTI.
http://earth.terran.org/~bryan


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

* pdf files on Linux/Alpha
  1998-09-17 12:35     ` Bibek Sahu
@ 1998-09-15 21:05       ` Roman Martonak
  1998-09-15 23:03         ` Michal Jaegermann
  1998-09-16 15:42         ` Scott Lewis
  0 siblings, 2 replies; 17+ messages in thread
From: Roman Martonak @ 1998-09-15 21:05 UTC (permalink / raw)
  To: axp-list

According to the documentation, ghostscript in RH 4.2 should be able to
handle PDF files, but it seems not be the case. Is there some way to do
it or is it simply necessary to compile a more recent version of
ghostscript ?

		Thanks a lot in advance,

				Roman Martonak.

-----------------------------------------------------------------------------
Roman Martonak
Max-Planck-Institut fuer Festkoerperforschung
Heisenbergstrasse 1
D-70569 Stuttgart
Germany

Phone: + 49 711 6891756
Fax: + 49 711 6891702

e-mail: martonak@prr.mpi-stuttgart.mpg.de


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

* Re: pdf files on Linux/Alpha
  1998-09-15 21:05       ` pdf files " Roman Martonak
@ 1998-09-15 23:03         ` Michal Jaegermann
  1998-09-16 15:42         ` Scott Lewis
  1 sibling, 0 replies; 17+ messages in thread
From: Michal Jaegermann @ 1998-09-15 23:03 UTC (permalink / raw)
  To: axp-list

Roman Martonak wrote:
> 
> According to the documentation, ghostscript in RH 4.2 should be able to
> handle PDF files, but it seems not be the case.

I do not know about that.  I know that 5.10 does this and 5.01
should be good enough.  Maybe a corresponding "device" was not
compiled in for your version?  There is a lot of flexibility in
this when you are configuring ghostscript for a compilation.

> Is there some way to do
> it

You can use xpdf as well.  Alpha rpms of the current versions
should be at least in contribs.

  Michal


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

* Re: MPEG 3 on Linux/Alpha (player src.)
  1998-09-15 16:44   ` MPEG 3 on Linux/Alpha Linus
@ 1998-09-16 10:49     ` Seppo Saario
  1998-09-16 21:50       ` Joakim Roubert
  1998-09-18 16:40       ` Joakim Roubert
  0 siblings, 2 replies; 17+ messages in thread
From: Seppo Saario @ 1998-09-16 10:49 UTC (permalink / raw)
  To: axp-list

Hi,

> > > Does anybody know how to play MPEG3 audio files on Linux Alpha ?
> > 
> > amp, splay, and other should work...
> > 
> > Does anyone know how to *encode* MP3 files on Linux/Alpha?  (Does anyone
> > still have source code for 8hz?)

http://student.uq.edu.au/~s302585/

has the best MP3 encoder I found (source), it compiles OK on the Alphas,
just have to take out the intel specific compiler options in the makefile.
Takes about 7.5 minutes for 69 Mb of wav file (~6.5 mins song). :-)

Hope it helps.

Seppo Saario
saario@me.gu.edu.au


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

* Re: pdf files on Linux/Alpha
  1998-09-15 21:05       ` pdf files " Roman Martonak
  1998-09-15 23:03         ` Michal Jaegermann
@ 1998-09-16 15:42         ` Scott Lewis
  1999-01-10 11:57           ` problems with 5.1 Roman Martonak
  1 sibling, 1 reply; 17+ messages in thread
From: Scott Lewis @ 1998-09-16 15:42 UTC (permalink / raw)
  To: axp-list

What about xpdf?  Look on ftp.aminet.com in /pub/users/derekn/xpdf .
Source is of course available.  Builds just fine under RH5.1 on my AS200.



Scott Lewis   
Computer Support
Department of Civil and Environmental Engineering
Georgia Institute of Technology
scott.lewis@ce.gatech.edu   (404) 894-2210

"Make it idiot proof and someone will make a better idiot."


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

* Re: MPEG 3 on Linux/Alpha (player src.)
  1998-09-16 10:49     ` MPEG 3 on Linux/Alpha (player src.) Seppo Saario
@ 1998-09-16 21:50       ` Joakim Roubert
  1998-09-18 16:40       ` Joakim Roubert
  1 sibling, 0 replies; 17+ messages in thread
From: Joakim Roubert @ 1998-09-16 21:50 UTC (permalink / raw)
  To: axp-list

On Wed, 16 Sep 1998, Seppo Saario wrote:

> Takes about 7.5 minutes for 69 Mb of wav file (~6.5 mins song). :-)

What hardware?

/Jokke tmw.
···
 http://www.efd.lth.se/~d97jro/


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

* Re: MPEG 3 on Linux/Alpha
  1998-09-15 16:38   ` Adrian Gartland
@ 1998-09-17 12:35     ` Bibek Sahu
  1998-09-15 21:05       ` pdf files " Roman Martonak
  0 siblings, 1 reply; 17+ messages in thread
From: Bibek Sahu @ 1998-09-17 12:35 UTC (permalink / raw)
  To: axp-list


On Tue, 15 Sep 1998, Adrian Gartland wrote:

> On Tue, 15 Sep 1998, Jeff Noxon wrote:
> 
> > On Tue, Sep 15, 1998 at 06:05:32PM +0200, Roman Martonak wrote:
[ ... ]
> > Does anyone know how to *encode* MP3 files on Linux/Alpha?  (Does anyone
> > still have source code for 8hz?)
> > 
> 
> I have something called "encode" which I got some time
> ago...from somewhere. Needed a little hacking of the
> Makefile to make it compile for alpha, but it works.
> 
> Can stick a hacked-for-linux-alpha .tgz on here if people 
> want it.

	1.0 built out of the box for me; 1.0.1 had a logic error (needed
!strcmp(), as opposed to strcmp()) which I patched.  I also replaced all
instances of gets with fgets (which does overflow checking).  Src/bin rpms
are available from the 'rpm' anonymous account on my machine:
ftp://rpm@prophet.dodds.net/.

- Bob



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

* Re: MPEG 3 on Linux/Alpha (player src.)
  1998-09-16 10:49     ` MPEG 3 on Linux/Alpha (player src.) Seppo Saario
  1998-09-16 21:50       ` Joakim Roubert
@ 1998-09-18 16:40       ` Joakim Roubert
  1 sibling, 0 replies; 17+ messages in thread
From: Joakim Roubert @ 1998-09-18 16:40 UTC (permalink / raw)
  To: axp-list

On Wed, 16 Sep 1998, Seppo Saario wrote:

> http://student.uq.edu.au/~s302585/
> has the best MP3 encoder I found (source), it compiles OK on the Alphas,

This just ROCKS!!
Takes only 2/3 the time that my old encoder takes. Great!
Thnx!!

/Jokke tmw.
···
 http://www.efd.lth.se/~d97jro/


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

* problems with 5.1
  1998-09-16 15:42         ` Scott Lewis
@ 1999-01-10 11:57           ` Roman Martonak
  1999-01-10 16:33             ` Michal Jaegermann
  0 siblings, 1 reply; 17+ messages in thread
From: Roman Martonak @ 1999-01-10 11:57 UTC (permalink / raw)
  To: axp-list

I recently installed 5.1 on my UDB and encountered following problems.

First, during kernel compilation (2.0.35-1 from 5.1 updates)
I got the following error during make modules:

make[2]: Entering directory `/usr/src/linux-2.0.35/drivers/net'
gcc -D__KERNEL__ -I/usr/src/linux-2.0.35/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe
-mno-fp-regs -Wa,-m21164a -DBWX_USABLE -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.0.35/include/linux/modversions.h -DEXPORT_SYMTAB -c
slhc.c
{standard input}: gcc: Internal compiler error: program cc1 got fatal
signal 11
make[2]: *** [slhc.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.0.35/drivers/net'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.0.35/drivers'
make: *** [modules] Error 2
[root@dial26 linux]# Assembler messages:
{standard input}:0: Warning: end of file not at end of a line; newline
inserted
{standard input}:519: Error: non-absolute expression in constant field
{standard input}:519: Warning: Missing .end or .bend at end of file

The error is reproducible, so it does not look like a hardware-induced
signal 11.
I used freshly compiled egcs-1.1.1. Is it a problem of kernel sources or
of egcs ?

Another problem was as I tried to update glibc-2.0.7-13, after the
command
rpm -Uvh glibc-2.0.7-19.alpha.rpm 

I got an error like "archive unpacking failed on file libc-2.0.7.so",
resulting
in corrupted root partition and an unusable system. Fortunately, I have
another
linux on another disk, so I could copy the  libc-2.0.7.so back to /lib
and get it
work again, but it anyway looks very strange. Any ideas ?

	Thanks for any suggestion,
					Roman Martonak.
--------------------------------------------------------------------------------
Roman Martonak
Max-Planck-Institut fuer Festkoerperforschung
Heisenbergstrasse 1
D-70569 Stuttgart
Germany

Phone: + 49 711 6891756
Fax: + 49 711 6891702

e-mail: martonak@prr.mpi-stuttgart.mpg.de


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

* Re: problems with 5.1
  1999-01-10 11:57           ` problems with 5.1 Roman Martonak
@ 1999-01-10 16:33             ` Michal Jaegermann
  1999-01-12  6:49               ` Roman Martonak
  0 siblings, 1 reply; 17+ messages in thread
From: Michal Jaegermann @ 1999-01-10 16:33 UTC (permalink / raw)
  To: axp-list

Roman Martonak wrote:
> 
> I recently installed 5.1 on my UDB and encountered following problems.
> 
> First, during kernel compilation (2.0.35-1 from 5.1 updates)
> I got the following error during make modules:
> 
> make[2]: Entering directory `/usr/src/linux-2.0.35/drivers/net'
> gcc -D__KERNEL__ -I/usr/src/linux-2.0.35/include -Wall
> -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe
> -mno-fp-regs -Wa,-m21164a -DBWX_USABLE -DMODULE -DMODVERSIONS -include
> /usr/src/linux-2.0.35/include/linux/modversions.h -DEXPORT_SYMTAB -c
> slhc.c
> {standard input}: gcc: Internal compiler error: program cc1 got fatal
> signal 11
....
> The error is reproducible, so it does not look like a hardware-induced
> signal 11.

No, this is a compiler bug which was, BTW, discussed on this list and
for which a fix is known (an optimizer hiccups on in-line functions).

> I used freshly compiled egcs-1.1.1. Is it a problem of kernel sources or
> of egcs ?

Unfortunately this fix, to combine.c, was forgotten in 1.1.1 release
and the previous release suffers in an exactly the same way.  Current
snapshots have the problem corrected thanks to rth.

As a workaround to compile slhc.o use a command you quote above
with '-O' substituted for '-O2'.  It will work.  Replacing gcc/combine.c
with a one from a snapshot (any will do starting from some early
November) and recompiling will fix your compiler.

> 
> Another problem was as I tried to update glibc-2.0.7-13, after the
> command
> rpm -Uvh glibc-2.0.7-19.alpha.rpm 
> 
> I got an error like "archive unpacking failed on file libc-2.0.7.so",

Probably you got a corrupted copy of an archive.  You can test it
with 
      rpm2cpio glibc-2.0.7-19.alpha.rpm | cpio -itv > /dev/null
If this is not silent then replace your copy of
glibc-2.0.7-19.alpha.rpm.  Otherwise it should work.

If you are feeling shy and you have another copy of Linux then
using '-r' option to rpm will allow you to update NOT the running
installation.  This is safer with such sensitive thing like glibc.

   Michal


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

* Re: problems with 5.1
  1999-01-10 16:33             ` Michal Jaegermann
@ 1999-01-12  6:49               ` Roman Martonak
  1999-01-12 17:29                 ` Michal Jaegermann
  0 siblings, 1 reply; 17+ messages in thread
From: Roman Martonak @ 1999-01-12  6:49 UTC (permalink / raw)
  To: axp-list

Michal Jaegermann wrote:

> Replacing gcc/combine.c
> with a one from a snapshot (any will do starting from some early
> November) and recompiling will fix your compiler.
> 

I took combine.c from snapshot egcs-19981206 and got the following error
right at 
the beginning of make bootstrap (I used gcc-2.7.2.3 to compile egcs):

../../egcs-1.1.1/gcc/config ../../egcs-1.1.1/gcc/combine.c
../../egcs-1.1.1/gcc/combine.c: In function `gen_rtx_combine':
../../egcs-1.1.1/gcc/combine.c:9292: warning: declaration of `code'
shadows a parameter
../../egcs-1.1.1/gcc/combine.c:9293: warning: declaration of `mode'
shadows a parameter
../../egcs-1.1.1/gcc/combine.c:9295: `va_list' undeclared (first use
this function)
../../egcs-1.1.1/gcc/combine.c:9295: (Each undeclared identifier is
reported only once
../../egcs-1.1.1/gcc/combine.c:9295: for each function it appears in.)
../../egcs-1.1.1/gcc/combine.c:9295: parse error before `p'
../../egcs-1.1.1/gcc/combine.c:9303: `p' undeclared (first use this
function)
../../egcs-1.1.1/gcc/combine.c:9306: parse error before `enum'
../../egcs-1.1.1/gcc/combine.c:9307: parse error before `enum'
../../egcs-1.1.1/gcc/combine.c:9322: parse error before `rtx'
make[2]: *** [combine.o] Error 1
make[2]: Leaving directory `/home/martonak/egcs/objdir/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/home/martonak/egcs/objdir/gcc'
make: *** [bootstrap] Error 2

Maybe I took a wrong snapshot ?

--------------------------------------------------------------------------------
Roman Martonak
Max-Planck-Institut fuer Festkoerperforschung
Heisenbergstrasse 1
D-70569 Stuttgart
Germany

Phone: + 49 711 6891756
Fax: + 49 711 6891702

e-mail: martonak@prr.mpi-stuttgart.mpg.de


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

* Re: problems with 5.1
  1999-01-12  6:49               ` Roman Martonak
@ 1999-01-12 17:29                 ` Michal Jaegermann
  0 siblings, 0 replies; 17+ messages in thread
From: Michal Jaegermann @ 1999-01-12 17:29 UTC (permalink / raw)
  To: axp-list

Roman Martonak wrote:
> 
> Michal Jaegermann wrote:
> 
> > Replacing gcc/combine.c
> > with a one from a snapshot (any will do starting from some early
> > November) and recompiling will fix your compiler.
> > 
> 
> I took combine.c from snapshot egcs-19981206 and got the following error

Looks like that my advice was a bit off and there are more differences
in combine.c that it seemed to me on the first glance. Sorry.

Anyway - here is a patch for combine.c from 1.1.1 (it may mention "fuzz"
while patching - disregard).

   Michal

--- combine.c.rth	Wed Oct 21 19:54:11 1998
+++ combine.c	Wed Oct 21 19:54:31 1998
@@ -3048,103 +3048,154 @@
   if (COMBINE_RTX_EQUAL_P (x, to))
     return to;
 
-  len = GET_RTX_LENGTH (code);
-  fmt = GET_RTX_FORMAT (code);
+  /* Parallel asm_operands need special attention because all of the
+     inputs are shared across the arms.  Furthermore, unsharing the
+     rtl results in recognition failures.  Failure to handle this case
+     specially can result in circular rtl.
+
+     Solve this by doing a normal pass across the first entry of the
+     parallel, and only processing the SET_DESTs of the subsequent
+     entries.  Ug.  */
+
+  if (code == PARALLEL
+      && GET_CODE (XVECEXP (x, 0, 0)) == SET
+      && GET_CODE (SET_SRC (XVECEXP (x, 0, 0))) == ASM_OPERANDS)
+    {
+      new = subst (XVECEXP (x, 0, 0), from, to, 0, unique_copy);
 
-  /* We don't need to process a SET_DEST that is a register, CC0, or PC, so
-     set up to skip this common case.  All other cases where we want to
-     suppress replacing something inside a SET_SRC are handled via the
-     IN_DEST operand.  */
-  if (code == SET
-      && (GET_CODE (SET_DEST (x)) == REG
-        || GET_CODE (SET_DEST (x)) == CC0
-        || GET_CODE (SET_DEST (x)) == PC))
-    fmt = "ie";
-
-  /* Get the mode of operand 0 in case X is now a SIGN_EXTEND of a
-     constant.  */
-  if (fmt[0] == 'e')
-    op0_mode = GET_MODE (XEXP (x, 0));
+      /* If this substitution failed, this whole thing fails.  */
+      if (GET_CODE (new) == CLOBBER
+	  && XEXP (new, 0) == const0_rtx)
+	return new;
 
-  for (i = 0; i < len; i++)
-    {
-      if (fmt[i] == 'E')
+      SUBST (XVECEXP (x, 0, 0), new);
+
+      for (i = XVECLEN (x, 0) - 1; i >= 1; i--)
 	{
-	  register int j;
-	  for (j = XVECLEN (x, i) - 1; j >= 0; j--)
+	  rtx dest = SET_DEST (XVECEXP (x, 0, i));
+	  
+	  if (GET_CODE (dest) != REG
+	      && GET_CODE (dest) != CC0
+	      && GET_CODE (dest) != PC)
 	    {
-	      if (COMBINE_RTX_EQUAL_P (XVECEXP (x, i, j), from))
-		{
-		  new = (unique_copy && n_occurrences ? copy_rtx (to) : to);
-		  n_occurrences++;
-		}
-	      else
-		{
-		  new = subst (XVECEXP (x, i, j), from, to, 0, unique_copy);
+	      new = subst (dest, from, to, 0, unique_copy);
 
-		  /* If this substitution failed, this whole thing fails.  */
-		  if (GET_CODE (new) == CLOBBER && XEXP (new, 0) == const0_rtx)
-		    return new;
-		}
+	      /* If this substitution failed, this whole thing fails.  */
+	      if (GET_CODE (new) == CLOBBER
+		  && XEXP (new, 0) == const0_rtx)
+		return new;
 
-	      SUBST (XVECEXP (x, i, j), new);
+	      SUBST (SET_DEST (XVECEXP (x, 0, i)), new);
 	    }
 	}
-      else if (fmt[i] == 'e')
+    }
+  else
+    {
+      len = GET_RTX_LENGTH (code);
+      fmt = GET_RTX_FORMAT (code);
+
+      /* We don't need to process a SET_DEST that is a register, CC0,
+	 or PC, so set up to skip this common case.  All other cases
+	 where we want to suppress replacing something inside a
+	 SET_SRC are handled via the IN_DEST operand.  */
+      if (code == SET
+	  && (GET_CODE (SET_DEST (x)) == REG
+	      || GET_CODE (SET_DEST (x)) == CC0
+	      || GET_CODE (SET_DEST (x)) == PC))
+	fmt = "ie";
+
+      /* Get the mode of operand 0 in case X is now a SIGN_EXTEND of a
+	 constant.  */
+      if (fmt[0] == 'e')
+	op0_mode = GET_MODE (XEXP (x, 0));
+
+      for (i = 0; i < len; i++)
 	{
-	  if (COMBINE_RTX_EQUAL_P (XEXP (x, i), from))
+	  if (fmt[i] == 'E')
 	    {
-	      /* In general, don't install a subreg involving two modes not
-		 tieable.  It can worsen register allocation, and can even
-		 make invalid reload insns, since the reg inside may need to
-		 be copied from in the outside mode, and that may be invalid
-		 if it is an fp reg copied in integer mode.
-
-		 We allow two exceptions to this: It is valid if it is inside
-		 another SUBREG and the mode of that SUBREG and the mode of
-		 the inside of TO is tieable and it is valid if X is a SET
-		 that copies FROM to CC0.  */
-	      if (GET_CODE (to) == SUBREG
-		  && ! MODES_TIEABLE_P (GET_MODE (to),
-					GET_MODE (SUBREG_REG (to)))
-		  && ! (code == SUBREG
-			&& MODES_TIEABLE_P (GET_MODE (x),
-					    GET_MODE (SUBREG_REG (to))))
+	      register int j;
+	      for (j = XVECLEN (x, i) - 1; j >= 0; j--)
+		{
+		  if (COMBINE_RTX_EQUAL_P (XVECEXP (x, i, j), from))
+		    {
+		      new = (unique_copy && n_occurrences
+			     ? copy_rtx (to) : to);
+		      n_occurrences++;
+		    }
+		  else
+		    {
+		      new = subst (XVECEXP (x, i, j), from, to, 0,
+				   unique_copy);
+
+		      /* If this substitution failed, this whole thing
+			 fails.  */
+		      if (GET_CODE (new) == CLOBBER
+			  && XEXP (new, 0) == const0_rtx)
+			return new;
+		    }
+
+		  SUBST (XVECEXP (x, i, j), new);
+		}
+	    }
+	  else if (fmt[i] == 'e')
+	    {
+	      if (COMBINE_RTX_EQUAL_P (XEXP (x, i), from))
+		{
+		  /* In general, don't install a subreg involving two
+		     modes not tieable.  It can worsen register
+		     allocation, and can even make invalid reload
+		     insns, since the reg inside may need to be copied
+		     from in the outside mode, and that may be invalid
+		     if it is an fp reg copied in integer mode.
+
+		     We allow two exceptions to this: It is valid if
+		     it is inside another SUBREG and the mode of that
+		     SUBREG and the mode of the inside of TO is
+		     tieable and it is valid if X is a SET that copies
+		     FROM to CC0.  */
+
+		  if (GET_CODE (to) == SUBREG
+		      && ! MODES_TIEABLE_P (GET_MODE (to),
+					    GET_MODE (SUBREG_REG (to)))
+		      && ! (code == SUBREG
+			    && MODES_TIEABLE_P (GET_MODE (x),
+						GET_MODE (SUBREG_REG (to))))
 #ifdef HAVE_cc0
-		  && ! (code == SET && i == 1 && XEXP (x, 0) == cc0_rtx)
+		      && ! (code == SET && i == 1 && XEXP (x, 0) == cc0_rtx)
 #endif
-		  )
-		return gen_rtx_CLOBBER (VOIDmode, const0_rtx);
+		      )
+		    return gen_rtx_CLOBBER (VOIDmode, const0_rtx);
 
-	      new = (unique_copy && n_occurrences ? copy_rtx (to) : to);
-	      n_occurrences++;
-	    }
-	  else
-	    /* If we are in a SET_DEST, suppress most cases unless we
-	       have gone inside a MEM, in which case we want to
-	       simplify the address.  We assume here that things that
-	       are actually part of the destination have their inner
-	       parts in the first expression.  This is true for SUBREG, 
-	       STRICT_LOW_PART, and ZERO_EXTRACT, which are the only
-	       things aside from REG and MEM that should appear in a
-	       SET_DEST.  */
-	    new = subst (XEXP (x, i), from, to,
-			 (((in_dest
-			    && (code == SUBREG || code == STRICT_LOW_PART
-				|| code == ZERO_EXTRACT))
-			   || code == SET)
-			  && i == 0), unique_copy);
-
-	  /* If we found that we will have to reject this combination,
-	     indicate that by returning the CLOBBER ourselves, rather than
-	     an expression containing it.  This will speed things up as
-	     well as prevent accidents where two CLOBBERs are considered
-	     to be equal, thus producing an incorrect simplification.  */
+		  new = (unique_copy && n_occurrences ? copy_rtx (to) : to);
+		  n_occurrences++;
+		}
+	      else
+		/* If we are in a SET_DEST, suppress most cases unless we
+		   have gone inside a MEM, in which case we want to
+		   simplify the address.  We assume here that things that
+		   are actually part of the destination have their inner
+		   parts in the first expression.  This is true for SUBREG, 
+		   STRICT_LOW_PART, and ZERO_EXTRACT, which are the only
+		   things aside from REG and MEM that should appear in a
+		   SET_DEST.  */
+		new = subst (XEXP (x, i), from, to,
+			     (((in_dest
+				&& (code == SUBREG || code == STRICT_LOW_PART
+				    || code == ZERO_EXTRACT))
+			       || code == SET)
+			      && i == 0), unique_copy);
+
+	      /* If we found that we will have to reject this combination,
+		 indicate that by returning the CLOBBER ourselves, rather than
+		 an expression containing it.  This will speed things up as
+		 well as prevent accidents where two CLOBBERs are considered
+		 to be equal, thus producing an incorrect simplification.  */
 
-	  if (GET_CODE (new) == CLOBBER && XEXP (new, 0) == const0_rtx)
-	    return new;
+	      if (GET_CODE (new) == CLOBBER && XEXP (new, 0) == const0_rtx)
+		return new;
 
-	  SUBST (XEXP (x, i), new);
+	      SUBST (XEXP (x, i), new);
+	    }
 	}
     }
 


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

end of thread, other threads:[~1999-01-12 17:52 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-15 16:05 MPEG 3 on Linux/Alpha Roman Martonak
1998-09-15 16:18 ` Jeff Noxon
1998-09-15 16:38   ` Adrian Gartland
1998-09-17 12:35     ` Bibek Sahu
1998-09-15 21:05       ` pdf files " Roman Martonak
1998-09-15 23:03         ` Michal Jaegermann
1998-09-16 15:42         ` Scott Lewis
1999-01-10 11:57           ` problems with 5.1 Roman Martonak
1999-01-10 16:33             ` Michal Jaegermann
1999-01-12  6:49               ` Roman Martonak
1999-01-12 17:29                 ` Michal Jaegermann
1998-09-15 16:44   ` MPEG 3 on Linux/Alpha Linus
1998-09-16 10:49     ` MPEG 3 on Linux/Alpha (player src.) Seppo Saario
1998-09-16 21:50       ` Joakim Roubert
1998-09-18 16:40       ` Joakim Roubert
1998-09-15 17:02 ` MPEG 3 on Linux/Alpha Joakim Roubert
1998-09-15 18:00 ` B. James Phillippe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox