summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2008-07-28 09:50:09 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2008-07-28 09:50:09 +0000
commit194a362e4a9028ec58920d38e01804f7fb47984c (patch)
treef5561eadbf197eeb624b8bdecf5d0f07a9b5e4db /compiler
parente7e4753b96bcea9af26eb612b655ab82b811ae2f (diff)
downloadfpc-194a362e4a9028ec58920d38e01804f7fb47984c.tar.gz
* teach peephole optimizer about ror/rol
* md5 unit uses system.rol git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@11468 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler')
-rw-r--r--compiler/i386/csopt386.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/i386/csopt386.pas b/compiler/i386/csopt386.pas
index 63c964488e..43ccec68f0 100644
--- a/compiler/i386/csopt386.pas
+++ b/compiler/i386/csopt386.pas
@@ -1022,7 +1022,7 @@ var
begin
case p.opcode of
A_IMUL: noHardCodedRegs := p.ops <> 1;
- A_SHL,A_SHR,A_SHLD,A_SHRD: noHardCodedRegs :=
+ A_SHL,A_SHR,A_ROR,A_ROL,A_SAR,A_SHLD,A_SHRD: noHardCodedRegs :=
(p.oper[0]^.typ <> top_reg) or
((orgReg <> RS_ECX) and (newReg <> RS_ECX));
else