Browse Source

* fixed register size of uxtb in case of a 64 bit scan operation
(mantis #27954)

git-svn-id: trunk@30724 -

Jonas Maebe 10 years ago
parent
commit
49aef02ef2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/aarch64/cgcpu.pas

+ 1 - 1
compiler/aarch64/cgcpu.pas

@@ -1110,7 +1110,7 @@ implementation
         list.Concat(taicpu.op_reg_reg_reg_cond(A_CSINV,dst,dst,makeregsize(NR_XZR,dstsize),C_NE));
         { mask the -1 to 255 if src was 0 (anyone find a two-instruction
           branch-free version? All of mine are 3...) }
-        list.Concat(setoppostfix(taicpu.op_reg_reg(A_UXT,dst,dst),PF_B));
+        list.Concat(setoppostfix(taicpu.op_reg_reg(A_UXT,makeregsize(dst,OS_32),makeregsize(dst,OS_32)),PF_B));
       end;