Selaa lähdekoodia

* fixed writing extended registers in references

git-svn-id: trunk@29933 -
Jonas Maebe 10 vuotta sitten
vanhempi
commit
f54ea490dd
1 muutettua tiedostoa jossa 7 lisäystä ja 3 poistoa
  1. 7 3
      compiler/aarch64/agcpugas.pas

+ 7 - 3
compiler/aarch64/agcpugas.pas

@@ -123,9 +123,13 @@ unit agcpugas;
                 case ref.shiftmode of
                 case ref.shiftmode of
                   SM_None: ;
                   SM_None: ;
                   SM_LSL,
                   SM_LSL,
-                  SM_UXTB, SM_UXTH, SM_UXTW, SM_UXTX,
-                  SM_SXTB, SM_SXTH, SM_SXTW, SM_SXTX:
-                    result:=result+', lsl #'+tostr(ref.shiftimm);
+                  SM_UXTW, SM_UXTX, SM_SXTW, SM_SXTX:
+                    begin
+                      result:=result+', '+gas_shiftmode2str[ref.shiftmode];
+                      if (ref.shiftmode=SM_LSL) or
+                         (ref.shiftimm<>0) then
+                        result:=result+' #'+tostr(ref.shiftimm);
+                    end
                   else
                   else
                     internalerror(2014121505);
                     internalerror(2014121505);
                 end;
                 end;