summaryrefslogtreecommitdiff
path: root/compiler/aarch64/aasmcpu.pas
diff options
context:
space:
mode:
authorjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2021-04-14 20:56:29 +0000
committerjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2021-04-14 20:56:29 +0000
commit688826f09a096666e27928f0ac5791cfdd0f8f8e (patch)
treeb183454b1ead06422b295ca5b1c188d740a7c6ef /compiler/aarch64/aasmcpu.pas
parent1c51b1c1da79b9a613a5c37fbf9e8ad37dd5a677 (diff)
downloadfpc-688826f09a096666e27928f0ac5791cfdd0f8f8e.tar.gz
* AArch64: fixed spilling info for MOVK (part of mantis #38053)
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@49206 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/aarch64/aasmcpu.pas')
-rw-r--r--compiler/aarch64/aasmcpu.pas8
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/aarch64/aasmcpu.pas b/compiler/aarch64/aasmcpu.pas
index 21ea555bf0..f1aed5e3fa 100644
--- a/compiler/aarch64/aasmcpu.pas
+++ b/compiler/aarch64/aasmcpu.pas
@@ -1046,6 +1046,13 @@ implementation
{ check for pre/post indexed in spilling_get_operation_type_ref }
result:=operand_read;
end;
+ A_MOVK:
+ begin
+ if opnr=0 then
+ result:=operand_readwrite
+ else
+ result:=operand_read;
+ end;
{$ifdef EXTDEBUG}
{ play save to avoid hard to find bugs, better fail at compile time }
A_ADD,
@@ -1080,7 +1087,6 @@ implementation
A_LSR,
A_LSRV,
A_MOV,
- A_MOVK,
A_MOVN,
A_MOVZ,
A_MSUB,