Attempt to fix tcalext3 big-endian powerpc64 failure

This commit is contained in:
Pierre Muller 2023-10-11 00:55:16 +02:00
parent 131331bc50
commit 922893ddbb

View File

@ -1245,7 +1245,8 @@ implementation
begin
hreg:=paraloc.register;
cgsize:=paraloc.size;
if paraloc.shiftval>0 then
if (paraloc.shiftval>0) and
not ((target_info.endian=endian_big) and (sizeleft in [3,5,6,7])) then
a_op_const_reg_reg(list,OP_SHL,OS_INT,paraloc.shiftval,paraloc.register,paraloc.register)
{ in case the original size was 3 or 5/6/7 bytes, the value was
shifted to the top of the to 4 resp. 8 byte register on the