Sfoglia il codice sorgente

* RiscV: write top_realconst properly

florian 1 settimana fa
parent
commit
8cd0f2bbf8
1 ha cambiato i file con 11 aggiunte e 0 eliminazioni
  1. 11 0
      compiler/riscv/agrvgas.pas

+ 11 - 0
compiler/riscv/agrvgas.pas

@@ -180,6 +180,17 @@ unit agrvgas;
           end;
         top_roundingmode:
           getopstr:=roundingmode2str[o.roundingmode];
+        top_realconst:
+          case o.special_value of
+            ARSV_None:
+              str(o.val_real,getopstr);
+            ARSV_Nan:
+              getopstr:='nan';
+            ARSV_Min:
+              getopstr:='min';
+            ARSV_Inf:
+              getopstr:='inf';
+          end;
         else
           internalerror(2002070604);
       end;