Fix PPC STQ negative offsets

This commit is contained in:
b
2024-11-24 14:55:06 +01:00
committed by ghidorahrex
parent 65a848c4d1
commit ab08578711
@@ -1925,8 +1925,8 @@ define pcodeop stfdpOp;
# binutils: power4.d: +58: f8 c7 ff f2 stq r6,-16\(r7\)
# binutils: power4.d: +5c: f8 c7 80 02 stq r6,-32768\(r7\)
# binutils: power4.d: +60: f8 c7 7f f2 stq r6,32752\(r7\)
:stq RS,RA_OR_ZERO,DS is $(NOTVLE) & OP=62 & RS & Dp & RA_OR_ZERO & DS & BITS_0_1=2 & regp [regpset = Dp+1;] {
ea:$(REGISTER_SIZE) = RA_OR_ZERO + sext(DS:2 << 2);
:stq RS,dsPlusRaOrZeroAddress is $(NOTVLE) & OP=62 & RS & Dp & dsPlusRaOrZeroAddress & BITS_0_1=2 & regp [regpset = Dp+1;] {
ea:$(REGISTER_SIZE) = dsPlusRaOrZeroAddress;
@if ENDIAN == "big"
*:$(REGISTER_SIZE) ea = RS;
*:$(REGISTER_SIZE) (ea + $(REGISTER_SIZE)) = regp;