Browse Source

* Xtensa: shifting fixed

git-svn-id: trunk@44355 -
florian 5 years ago
parent
commit
2146ca3616
1 changed files with 3 additions and 3 deletions
  1. 3 3
      compiler/xtensa/cgcpu.pas

+ 3 - 3
compiler/xtensa/cgcpu.pas

@@ -488,10 +488,10 @@ implementation
         else if op in [OP_SAR,OP_SHL,OP_SHR] then
           begin
             if op=OP_SHL then
-              list.concat(taicpu.op_reg(A_SSL,src1))
+              list.concat(taicpu.op_reg(A_SSL,src2))
             else
-              list.concat(taicpu.op_reg(A_SSR,src1));
-            list.concat(taicpu.op_reg_reg(TOpCG2AsmOp[op],dst,src2));
+              list.concat(taicpu.op_reg(A_SSR,src2));
+            list.concat(taicpu.op_reg_reg(TOpCG2AsmOp[op],dst,src1));
             maybeadjustresult(list,op,size,dst);
           end
         else