Browse Source

+ enable the sign extension wasm32 instructions

git-svn-id: branches/wasm@47975 -
nickysn 4 năm trước cách đây
mục cha
commit
4ea7d8dffb

+ 1 - 1
compiler/systems.pas

@@ -85,7 +85,7 @@ interface
           id          : tasm;
           id          : tasm;
           idtxt       : string[12];
           idtxt       : string[12];
           asmbin      : string[16];
           asmbin      : string[16];
-          asmcmd      : string[70];
+          asmcmd      : string[100];
           supported_targets : set of tsystem;
           supported_targets : set of tsystem;
           flags        : set of tasmflags;
           flags        : set of tasmflags;
           labelprefix : string[3];
           labelprefix : string[3];

+ 1 - 1
compiler/wasm32/agllvmmc.pas

@@ -329,7 +329,7 @@ implementation
          id     : as_wasm32_llvm_mc;
          id     : as_wasm32_llvm_mc;
          idtxt  : 'LLVM-MC';
          idtxt  : 'LLVM-MC';
          asmbin : 'llvm-mc';
          asmbin : 'llvm-mc';
-         asmcmd : '--assemble --arch=wasm32 --filetype=obj -o $OBJ $EXTRAOPT $ASM';
+         asmcmd : '--assemble --arch=wasm32 -mattr=+sign-ext --filetype=obj -o $OBJ $EXTRAOPT $ASM';
          supported_targets : [system_wasm32_wasm,system_wasm32_wasi];
          supported_targets : [system_wasm32_wasm,system_wasm32_wasi];
          flags : [];
          flags : [];
          labelprefix : '.L';
          labelprefix : '.L';