mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 12:26:58 +02:00
* use sra instead of srl when doing overflow checking on sparc, resolves #20396
git-svn-id: trunk@19498 -
This commit is contained in:
parent
ace6bfd4e9
commit
3323f1b3ea
@ -904,7 +904,7 @@ implementation
|
||||
tmpreg1:=GetIntRegister(list,OS_INT);
|
||||
tmpreg2:=GetIntRegister(list,OS_INT);
|
||||
list.concat(taicpu.op_reg_reg(A_MOV,NR_Y,tmpreg1));
|
||||
list.concat(taicpu.op_reg_const_reg(A_SRL,dst,31,tmpreg2));
|
||||
list.concat(taicpu.op_reg_const_reg(A_SRA,dst,31,tmpreg2));
|
||||
list.concat(taicpu.op_reg_reg(A_CMP,tmpreg1,tmpreg2));
|
||||
ovloc.loc:=LOC_FLAGS;
|
||||
ovloc.resflags:=F_NE;
|
||||
|
Loading…
Reference in New Issue
Block a user