Quellcode durchsuchen

* do shifts for sign/zero extensions correctly

git-svn-id: trunk@25418 -
florian vor 12 Jahren
Ursprung
Commit
e2ec3bbcb0
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      compiler/arm/cgcpu.pas

+ 3 - 3
compiler/arm/cgcpu.pas

@@ -1419,11 +1419,11 @@ unit cgcpu;
              begin
              begin
                case shiftmode of
                case shiftmode of
                  SM_ASR:
                  SM_ASR:
-                   a_op_const_reg(list,OP_SAR,OS_32,shiftimm,reg);
+                   a_op_const_reg_reg(list,OP_SAR,OS_32,shiftimm,reg,reg2);
                  SM_LSR:
                  SM_LSR:
-                   a_op_const_reg(list,OP_SHR,OS_32,shiftimm,reg);
+                   a_op_const_reg_reg(list,OP_SHR,OS_32,shiftimm,reg,reg2);
                  SM_LSL:
                  SM_LSL:
-                   a_op_const_reg(list,OP_SHL,OS_32,shiftimm,reg);
+                   a_op_const_reg_reg(list,OP_SHL,OS_32,shiftimm,reg,reg2);
                  else
                  else
                    internalerror(2013090301);
                    internalerror(2013090301);
                end;
                end;