diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2015-01-21 23:28:34 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2015-01-21 23:28:34 +0000 |
commit | 1903b037de2fb3e75826406b46f055acb70963fa (patch) | |
tree | 604cd8b790fe14e5fbe441d4cd647c80d2a36a9a /compiler/mips/aasmcpu.pas | |
parent | ad1141d52f8353457053b925cd674fe1d5c4eafc (diff) | |
parent | 953d907e4d6c3a5c2f8aaee6e5e4f73c55ce5985 (diff) | |
download | fpc-blocks.tar.gz |
* synchronised with trunk till r29513blocks
git-svn-id: http://svn.freepascal.org/svn/fpc/branches/blocks@29516 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/mips/aasmcpu.pas')
-rw-r--r-- | compiler/mips/aasmcpu.pas | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/compiler/mips/aasmcpu.pas b/compiler/mips/aasmcpu.pas index 6a6ac39edf..08a63e7bc9 100644 --- a/compiler/mips/aasmcpu.pas +++ b/compiler/mips/aasmcpu.pas @@ -33,9 +33,9 @@ uses const { "mov reg,reg" source operand number } - O_MOV_SOURCE = 0; + O_MOV_SOURCE = 1; { "mov reg,reg" source operand number } - O_MOV_DEST = 1; + O_MOV_DEST = 0; type { taicpu } @@ -401,13 +401,22 @@ end; A_SNE, A_EXT, A_INS, - A_MFC0]; + A_MFC0, + A_SEB, + A_SEH]; begin result := operand_read; - if opcode in op_write_set then - if opnr = 0 then - result := operand_write; + case opcode of + A_DIV, { these have 3 operands if used as macros } + A_DIVU: + if (ops=3) and (opnr=0) then + result:=operand_write; + else + if opcode in op_write_set then + if opnr = 0 then + result := operand_write; + end; end; |