<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>47141</bug_id>
          
          <creation_ts>2004-04-07 14:26 0000</creation_ts>
          <short_desc>Spim 6.5 bugfix patch</short_desc>
          <delta_ts>2004-04-10 19:11:27 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>lewk@gentoo.org</reporter>
          <assigned_to>mr_bones_@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>lewk@gentoo.org</who>
            <bug_when>2004-04-07 14:26:30 0000</bug_when>
            <thetext>There is a bug in spim 6.5 where doing the following would generate the wrong code:

lw      $s0, FRAMESIZE-4($sp) 

A way to get around this is to do -4+FRAMESIZE($sp).  
Here is a patch to fix this bug.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lewk@gentoo.org</who>
            <bug_when>2004-04-07 14:26:58 0000</bug_when>
            <thetext>Created an attachment (id=28852)
A trivial patch to fix this bug
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-04-09 19:22:02 0000</bug_when>
            <thetext>Can you give an example of the wrong code please?  Ideal would be code
generated before and after your patch.  Thanks.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2004-04-10 19:11:27 0000</bug_when>
            <thetext>Ok, confirmed bug and patch with upstream.  Added to CVS.  Thanks for
the bug report and patch.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>28852</attachid>
            <date>2004-04-07 14:26 0000</date>
            <desc>A trivial patch to fix this bug</desc>
            <filename>parser.y.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHBhcnNlci55CTIwMDQtMDQtMDcgMDk6NDQ6MzYuMDAwMDAwMDAwIC0wNDAwCisrKyBzcGlt
LTYuNS9wYXJzZXIueQkyMDAzLTAxLTA0IDE5OjA4OjU5LjAwMDAwMDAwMCAtMDUwMApAQCAtMTk2
NCw3ICsxOTY0LDcgQEAKIAkJICAvKiBZX0lOVCAnLScgWV9JTlQgKi8KIAkJICBpZiAoJDIuaSA+
PSAwKQogCQkgICAgeXllcnJvciAoIlN5bnRheCBlcnJvciIpOwotCQkgICQkLmkgPSAkMS5pICsg
JDIuaTsKKwkJICAkJC5pID0gJDEuaSAtICQyLmk7CiAJCX0KIAk7CiAK
</data>        

          </attachment>
    </bug>

</bugzilla>