Skip to contentSkip to conversation

Alpha: fix decoding of CVTST /S

PATCH Applied Laurent Desnogues 2 participants 2 messages Nov 11, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Alpha: fix decoding of CVTST /S

Hello,

this patch fixes the decoding of CVTST /S which was incorrectly being decoded as CVTTS.

This fixes SPEC2000 gcc with 200.i input.

Laurent

translate.c +1 -1
Index: target-alpha/translate.c
===================================================================
@@ -1464,7 +1464,7 @@
             break;
         case 0x2C:
             /* XXX: incorrect */
-            if (fn11 == 0x2AC) {
+            if (fn11 == 0x2AC || fn11 == 0x6AC) {
                 /* CVTST */
                 gen_farith2(&helper_cvtst, rb, rc);
             } else {
#1 lore raw
Quoted 7 lines · Laurent Desnogues

Hello,

this patch fixes the decoding of CVTST /S which was incorrectly being decoded as CVTTS.

This fixes SPEC2000 gcc with 200.i input.

Thanks, applied.

Quoted 17 lines

Laurent

Index: target-alpha/translate.c
===================================================================

translate.c +1 -1
@@ -1464,7 +1464,7 @@
             break;
         case 0x2C:
             /* XXX: incorrect */
-            if (fn11 == 0x2AC) {
+            if (fn11 == 0x2AC || fn11 == 0x6AC) {
                 /* CVTST */
                 gen_farith2(&helper_cvtst, rb, rc);
             } else {
Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net