|
@@ -300,6 +300,7 @@ unit cpubase;
|
|
|
|
|
|
function isaddressregister(reg : tregister) : boolean;
|
|
function isaddressregister(reg : tregister) : boolean;
|
|
function isintregister(reg : tregister) : boolean;
|
|
function isintregister(reg : tregister) : boolean;
|
|
|
|
+ function isfpuregister(reg : tregister) : boolean;
|
|
function fpuregopsize: TOpSize; {$ifdef USEINLINE}inline;{$endif USEINLINE}
|
|
function fpuregopsize: TOpSize; {$ifdef USEINLINE}inline;{$endif USEINLINE}
|
|
function fpuregsize: aint; {$ifdef USEINLINE}inline;{$endif USEINLINE}
|
|
function fpuregsize: aint; {$ifdef USEINLINE}inline;{$endif USEINLINE}
|
|
function needs_unaligned(const refalignment: aint; const size: tcgsize): boolean;
|
|
function needs_unaligned(const refalignment: aint; const size: tcgsize): boolean;
|
|
@@ -517,6 +518,11 @@ implementation
|
|
result:=getregtype(reg)=R_INTREGISTER;
|
|
result:=getregtype(reg)=R_INTREGISTER;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+ function isfpuregister(reg : tregister) : boolean; {$ifdef USEINLINE}inline;{$endif USEINLINE}
|
|
|
|
+ begin
|
|
|
|
+ result:=getregtype(reg)=R_FPUREGISTER;
|
|
|
|
+ end;
|
|
|
|
+
|
|
function fpuregopsize: TOpSize; {$ifdef USEINLINE}inline;{$endif USEINLINE}
|
|
function fpuregopsize: TOpSize; {$ifdef USEINLINE}inline;{$endif USEINLINE}
|
|
const
|
|
const
|
|
fpu_regopsize: array[boolean] of TOpSize = ( S_FX, S_FD );
|
|
fpu_regopsize: array[boolean] of TOpSize = ( S_FX, S_FD );
|