mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 20:49:19 +02:00
* fixed 64 bit boolean operations on ppc32 (fixes tests/test/taddbool)
git-svn-id: trunk@20521 -
This commit is contained in:
parent
9f512e231e
commit
639aa0c0c2
@ -179,17 +179,20 @@ implementation
|
|||||||
cmpop:=false;
|
cmpop:=false;
|
||||||
if (torddef(left.resultdef).ordtype in [pasbool8,bool8bit]) or
|
if (torddef(left.resultdef).ordtype in [pasbool8,bool8bit]) or
|
||||||
(torddef(right.resultdef).ordtype in [pasbool8,bool8bit]) then
|
(torddef(right.resultdef).ordtype in [pasbool8,bool8bit]) then
|
||||||
cgsize:=OS_8
|
cgsize:=OS_8
|
||||||
|
else if (torddef(left.resultdef).ordtype in [pasbool16,bool16bit]) or
|
||||||
|
(torddef(right.resultdef).ordtype in [pasbool16,bool16bit]) then
|
||||||
|
cgsize:=OS_16
|
||||||
|
else if (torddef(left.resultdef).ordtype in [pasbool32,bool32bit]) or
|
||||||
|
(torddef(right.resultdef).ordtype in [pasbool32,bool32bit]) then
|
||||||
|
cgsize:=OS_32
|
||||||
else
|
else
|
||||||
if (torddef(left.resultdef).ordtype in [pasbool16,bool16bit]) or
|
cgsize:=OS_64;
|
||||||
(torddef(right.resultdef).ordtype in [pasbool16,bool16bit]) then
|
|
||||||
cgsize:=OS_16
|
|
||||||
else
|
|
||||||
cgsize:=OS_32;
|
|
||||||
|
|
||||||
if ((cs_full_boolean_eval in current_settings.localswitches) and
|
if {$ifndef cpu64bitalu}(cgsize<>OS_64) and{$endif}
|
||||||
not(nf_short_bool in flags)) or
|
(((cs_full_boolean_eval in current_settings.localswitches) and
|
||||||
(nodetype in [unequaln,ltn,lten,gtn,gten,equaln,xorn]) then
|
not(nf_short_bool in flags)) or
|
||||||
|
(nodetype in [unequaln,ltn,lten,gtn,gten,equaln,xorn])) then
|
||||||
begin
|
begin
|
||||||
if left.nodetype in [ordconstn,realconstn] then
|
if left.nodetype in [ordconstn,realconstn] then
|
||||||
swapleftright;
|
swapleftright;
|
||||||
|
Loading…
Reference in New Issue
Block a user