mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 00:10:34 +02:00
* use IMUL even for unsigned multiplication on x86_64, when overflow checking is
off git-svn-id: trunk@26499 -
This commit is contained in:
parent
5d75bf4f92
commit
2459518bdd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user