chipsalliance / VeeR-ISS

Apache License 2.0
114 stars 33 forks source link

Decoding issue with fmax.s instruction #9

Closed UrvishkumarPatel closed 3 years ago

UrvishkumarPatel commented 3 years ago
$~/SweRV-ISS/build-Linux/whisper --interactive --newlib
whisper> poke m 0 0x295E94D3
whisper> s
#1 0 00000000 295e94d3 f 09 ffffffff7fc00000  fmax.s   f9, f29, f5  +
#1 0 00000000 295e94d3 c 0300       80007800  fmax.s   f9, f29, f5
whisper> 

This instruction must be decoded as "fmax.s f9, f29, f21" instead of "fmax.s f9, f29, f5".

jrahmeh commented 3 years ago

You are correct. Many thanks for reporting this. It has been fixed.