From 2e64db935a9e36c9da74075f955c14deb5f7f9ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1roly=20Balogh?= Date: Sun, 10 Apr 2016 18:56:51 +0000 Subject: [PATCH] m68k: BSET and BCLR's dest operand is actually readwrite, not write only. fixes sets with regvars, when the regvar is spilled git-svn-id: trunk@33476 - --- compiler/m68k/aasmcpu.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/m68k/aasmcpu.pas b/compiler/m68k/aasmcpu.pas index d76e5456d2..0dfc7d639a 100644 --- a/compiler/m68k/aasmcpu.pas +++ b/compiler/m68k/aasmcpu.pas @@ -473,14 +473,14 @@ type case opcode of // CPU opcodes - A_MOVE, A_MOVEQ, A_MOVEA, A_MVZ, A_MVS, A_MOV3Q, A_LEA, - A_BSET, A_BCLR: + A_MOVE, A_MOVEQ, A_MOVEA, A_MVZ, A_MVS, A_MOV3Q, A_LEA: if opnr=1 then result:=operand_write; A_ADD, A_ADDQ, A_ADDX, A_SUB, A_SUBQ, A_SUBX, A_AND, A_LSR, A_LSL, A_ASR, A_ASL, A_EOR, A_EORI, A_OR, A_ROL, A_ROR, A_ROXL, A_ROXR, - A_MULS, A_MULU, A_DIVS, A_DIVU, A_DIVSL, A_DIVUL: + A_MULS, A_MULU, A_DIVS, A_DIVU, A_DIVSL, A_DIVUL, + A_BSET, A_BCLR: if opnr=1 then result:=operand_readwrite; A_DBRA: