diff --git a/compiler/aarch64/cgcpu.pas b/compiler/aarch64/cgcpu.pas index be257be0e7..1415a546ca 100644 --- a/compiler/aarch64/cgcpu.pas +++ b/compiler/aarch64/cgcpu.pas @@ -1132,7 +1132,7 @@ implementation if shuffle=nil then begin dst:=newreg(R_MMREGISTER,getsupreg(dst),R_SUBMM16B); - src:=newreg(R_MMREGISTER,getsupreg(dst),R_SUBMM16B); + src:=newreg(R_MMREGISTER,getsupreg(src),R_SUBMM16B); list.concat(taicpu.op_reg_reg_reg(A_EOR,dst,dst,src)) end else if (src<>dst) or