瀏覽代碼

* RiscV: write top_realconst properly

florian 2 周之前
父節點
當前提交
8cd0f2bbf8
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      compiler/riscv/agrvgas.pas

+ 11 - 0
compiler/riscv/agrvgas.pas

@@ -180,6 +180,17 @@ unit agrvgas;
           end;
           end;
         top_roundingmode:
         top_roundingmode:
           getopstr:=roundingmode2str[o.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
         else
           internalerror(2002070604);
           internalerror(2002070604);
       end;
       end;