riscv-isa-sim icon indicating copy to clipboard operation
riscv-isa-sim copied to clipboard

Can the offset be negative value in stride and indexed vector load store instructions?

Open naveen126 opened this issue 2 years ago • 1 comments

Hi Sir, I have some vector load store page faults. For example, vluxei32.v v2, (x5), v8 vsse16.v v6, (x5), x7 When a negative integer has been moved into x7, or one element of v8, the final LSU address becomes too huge because the offset is treated as an unsigned integer.

So, the offset can not be a negative integer ???

Please give me some help. Thanks a lot!

naveen126 avatar Jun 20 '22 23:06 naveen126

Addresses are taken modulo 2^XLEN, so doing the calculation using unsigned arithmetic does the right thing.

aswaterman avatar Jun 21 '22 02:06 aswaterman