Explorar o código

* updated the a_fXX_convert_su_iYY asm ops to their modern format a_fXX_convert_iYY_su

git-svn-id: branches/wasm@48321 -
nickysn %!s(int64=4) %!d(string=hai) anos
pai
achega
60242ca0fd
Modificáronse 2 ficheiros con 10 adicións e 10 borrados
  1. 2 2
      compiler/wasm32/cpubase.pas
  2. 8 8
      compiler/wasm32/nwasmcnv.pas

+ 2 - 2
compiler/wasm32/cpubase.pas

@@ -73,8 +73,8 @@ uses
       a_i32_trunc_s_f32, a_i32_trunc_s_f64, a_i64_trunc_s_f32, a_i64_trunc_s_f64,
       a_i32_trunc_u_f32, a_i32_trunc_u_f64, a_i64_trunc_u_f32, a_i64_trunc_u_f64,
       a_f32_demote_f64, a_f64_promote_f32,
-      a_f32_convert_s_i32, a_f32_convert_s_i64,a_f64_convert_s_i32,a_f64_convert_s_i64,
-      a_f32_convert_u_i32, a_f32_convert_u_i64,a_f64_convert_u_i32,a_f64_convert_u_i64,
+      a_f32_convert_i32_s, a_f32_convert_i64_s,a_f64_convert_i32_s,a_f64_convert_i64_s,
+      a_f32_convert_i32_u, a_f32_convert_i64_u,a_f64_convert_i32_u,a_f64_convert_i64_u,
       a_i32_reinterpret_f32, a_i64_reinterpret_f64, a_f32_reinterpret_i32, a_f64_reinterpret_i64,
       // load/store
       a_i32_load, a_i64_load, a_f32_load, a_f64_load,

+ 8 - 8
compiler/wasm32/nwasmcnv.pas

@@ -79,17 +79,17 @@ implementation
                 is_currency(left.resultdef) then
                 begin
                   if is_signed(left.resultdef) then
-                    op:=a_f32_convert_s_i64
+                    op:=a_f32_convert_i64_s
                   else
-                    op:=a_f32_convert_u_i64;
+                    op:=a_f32_convert_i64_u;
                 end
               else
                 { other integers are supposed to be 32 bit }
                 begin
                   if is_signed(left.resultdef) then
-                    op:=a_f32_convert_s_i32
+                    op:=a_f32_convert_i32_s
                   else
-                    op:=a_f32_convert_u_i32;
+                    op:=a_f32_convert_i32_u;
                 end;
             end;
           s64real:
@@ -98,17 +98,17 @@ implementation
                 is_currency(left.resultdef) then
                 begin
                   if is_signed(left.resultdef) then
-                    op:=a_f64_convert_s_i64
+                    op:=a_f64_convert_i64_s
                   else
-                    op:=a_f64_convert_u_i64;
+                    op:=a_f64_convert_i64_u;
                 end
               else
                 { other integers are supposed to be 32 bit }
                 begin
                   if is_signed(left.resultdef) then
-                    op:=a_f64_convert_s_i32
+                    op:=a_f64_convert_i32_s
                   else
-                    op:=a_f64_convert_u_i32;
+                    op:=a_f64_convert_i32_u;
                 end;
             end;
           else