Explorar el Código

Restrict use of A_MOVE to ufromsize and utosize = OS_INT. (contributed by Jinyang He)
Fix issue #40648

Pierre Muller hace 1 año
padre
commit
462d0eb07c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      compiler/loongarch64/cgcpu.pas

+ 1 - 1
compiler/loongarch64/cgcpu.pas

@@ -462,7 +462,7 @@ implementation
         utosize:=tcgsize2unsigned[tosize];
         ufrom:=ufromsize=fromsize;
         uto:=utosize=tosize;
-        if (fromsize=tosize) or ((ufromsize=OS_INT) and (utosize=OS_INT)) then
+        if (ufromsize=OS_INT) and (utosize=OS_INT) then
           begin
             ai:=taicpu.op_reg_reg(A_MOVE,reg2,reg1);
             list.concat(ai);