Patches item #410567, was updated on 2001-03-22 10:59
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=311050&aid=410567&group_id=11050

Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: J�rgen Keil (jkeil)
>Assigned to: Zdenek Kabelac (kabi)
Summary: /usr/ccs/bin/as support for solaris 8

Initial Comment:
The current avifile-0.6-cvs cannot be compiled on
solaris 8 without installing GNU as, because:

- GNU as specific shortcuts in the assembler syntax are
  used in a few places

  Example: fmul %st(4)
  Instead of: fmul %st(4),%st

  GNU as understands both forms,  Sun's as only the
  second form.

- Sun's as does not support offsets with a multiply
  operator:

  movl 2*4 (%edi), %eax


  But "movl 4+4 (%edi), %eax" works.



(Note: Solaris 8 includes a pre-packaged gcc that is
configured to use the system's native /usr/ccs/bin/as
assembler)


The following patch adds support for Sun's as, so that
avifile-0.6-cvs can be compiled on solaris 8 without
the need to install GNU as first
(patch also available here: 
http://www.tools.de/solaris/avifile/avifile-0.6-cvs-diffs
).


Index:
plugins/libmp3lame_audioenc/lame3.70/quantize-pvt.c
===================================================================
RCS file:
/cvsroot/avifile/avifile-0.6/plugins/libmp3lame_audioenc/lame3.70/quantize-pvt.c,v
retrieving revision 1.1.1.1
diff -u -b -B -r1.1.1.1 quantize-pvt.c
--- plugins/libmp3lame_audioenc/lame3.70/quantize-pvt.c
2001/01/23 06:15:43     1.1.1.1
+++ plugins/libmp3lame_audioenc/lame3.70/quantize-pvt.c
2001/03/22 17:38:28
@@ -978,21 +978,21 @@
       __asm__ __volatile__(
         "\n\nloop1:\n\t"
 
-        "fld" F8type " 0*" F8size "(%1)\n\t"
-        "fld" F8type " 1*" F8size "(%1)\n\t"
-        "fld" F8type " 2*" F8size "(%1)\n\t"
-        "fld" F8type " 3*" F8size "(%1)\n\t"
+        "fld" F8type " 0(%1)\n\t"
+        "fld" F8type " " F8size "(%1)\n\t"
+        "fld" F8type " " F8size "+" F8size "(%1)\n\t"
+        "fld" F8type " " F8size "+" F8size "+" F8size
"(%1)\n\t"
 
         "fxch %%st(3)\n\t"
-        "fmul %%st(4)\n\t"
+        "fmul %%st(4),%%st\n\t"
         "fxch %%st(2)\n\t"
-        "fmul %%st(4)\n\t"
+        "fmul %%st(4),%%st\n\t"
         "fxch %%st(1)\n\t"
-        "fmul %%st(4)\n\t"
+        "fmul %%st(4),%%st\n\t"
         "fxch %%st(3)\n\t"
-        "fmul %%st(4)\n\t"
+        "fmul %%st(4),%%st\n\t"
 
-        "addl $4*" F8size ", %1\n\t"
+        "addl $" F8size "+" F8size "+" F8size "+"
F8size ", %1\n\t"
         "addl $16, %3\n\t"
 
         "fxch %%st(2)\n\t"
@@ -1182,33 +1182,33 @@
       __asm__ __volatile__ (
         "\n\nloop0:\n\t"
 
-        "fld" F8type " 0*" F8size "(%3)\n\t"
-        "fld" F8type " 1*" F8size "(%3)\n\t"
-        "fld" F8type " 2*" F8size "(%3)\n\t"
-        "fld" F8type " 3*" F8size "(%3)\n\t"
+        "fld" F8type " 0(%3)\n\t"
+        "fld" F8type " " F8size "(%3)\n\t"
+        "fld" F8type " " F8size "+" F8size "(%3)\n\t"
+        "fld" F8type " " F8size "+" F8size "+" F8size
"(%3)\n\t"
 
-        "addl $4*" F8size ", %3\n\t"
+        "addl $" F8size "+" F8size "+" F8size "+"
F8size ", %3\n\t"
         "addl $16, %4\n\t"
 
         "fxch %%st(3)\n\t"
-        "fmul %%st(4)\n\t"
+        "fmul %%st(4),%%st\n\t"
         "fxch %%st(2)\n\t"
-        "fmul %%st(4)\n\t"
+        "fmul %%st(4),%%st\n\t"
         "fxch %%st(1)\n\t"
-        "fmul %%st(4)\n\t"
+        "fmul %%st(4),%%st\n\t"
         "fxch %%st(3)\n\t"
-        "fmul %%st(4)\n\t"
+        "fmul %%st(4),%%st\n\t"
 
         "dec %0\n\t"
 
         "fxch %%st(2)\n\t"
-        "fadd %%st(5)\n\t"
+        "fadd %%st(5),%%st\n\t"
         "fxch %%st(1)\n\t"
-        "fadd %%st(5)\n\t"
+        "fadd %%st(5),%%st\n\t"
         "fxch %%st(3)\n\t"
-        "fadd %%st(5)\n\t"
+        "fadd %%st(5),%%st\n\t"
         "fxch %%st(2)\n\t"
-        "fadd %%st(5)\n\t"
+        "fadd %%st(5),%%st\n\t"
 
         "fxch %%st(1)\n\t"
         "fistpl -16(%4)\n\t"
Index: samples/qtrecompress/rgn.cpp
===================================================================
RCS file:
/cvsroot/avifile/avifile-0.6/samples/qtrecompress/rgn.cpp,v
retrieving revision 1.4
diff -u -b -B -r1.4 rgn.cpp
--- samples/qtrecompress/rgn.cpp        2001/03/14 13:25:57
1.4
+++ samples/qtrecompress/rgn.cpp        2001/03/22 17:38:28
@@ -233,7 +233,7 @@
 "mb0:\n\t"
                        "movb (%%ebx), %%al\n\t"
                        "movb (%%ebx, %%ecx), %%dl\n\t"
-                       "add %%dx, %%ax\n\t"
+                       "addw %%dx, %%ax\n\t"
                        "shr $1, %%eax\n\t"
                        "movb %%al, (%%ebx)\n\t"
                        "incl %%ebx\n\t"
@@ -282,7 +282,7 @@
 "mb1:\n\t"
                        "movb (%%ebx), %%al\n\t"
                        "movb (%%ebx, %%ecx), %%dl\n\t"
-                       "add %%dx, %%ax\n\t"
+                       "addw %%dx, %%ax\n\t"
                        "shr $1, %%eax\n\t"
                        "movb %%al, (%%ebx)\n\t"
                        "incl %%ebx\n\t"


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=311050&aid=410567&group_id=11050

_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to