* use IMUL even for unsigned multiplication on x86_64, when overflow checking is

off

git-svn-id: trunk@26499 -
This commit is contained in:
nickysn 2014-01-18 03:36:15 +00:00
parent 5d75bf4f92
commit 2459518bdd

View File

@ -49,8 +49,10 @@ interface
procedure tx8664addnode.second_addordinal;
begin
{ filter unsigned MUL opcode, which requires special handling }
{ filter unsigned MUL opcode, which requires special handling.
Note that when overflow checking is off, we can use IMUL instead. }
if (nodetype=muln) and
(cs_check_overflow in current_settings.localswitches) and
(not(is_signed(left.resultdef)) or
not(is_signed(right.resultdef))) then
begin