Browse Source

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

Pierre Muller 1 year ago
parent
commit
462d0eb07c
1 changed files with 1 additions and 1 deletions
  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);