diff options
author | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2008-07-28 09:50:09 +0000 |
---|---|---|
committer | florian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2008-07-28 09:50:09 +0000 |
commit | 194a362e4a9028ec58920d38e01804f7fb47984c (patch) | |
tree | f5561eadbf197eeb624b8bdecf5d0f07a9b5e4db /compiler | |
parent | e7e4753b96bcea9af26eb612b655ab82b811ae2f (diff) | |
download | fpc-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.pas | 2 |
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 |