SuperH: some reference issues with mov Rn, @(R0, Rm)
and mov R0, @(#imm8, gbr)
#4387
Labels
Feature: Processor/SuperH
Status: Triage
Information is being gathered
Type: Bug
Something isn't working
Describe the bug
There are two symptoms, probably very related, for certain occurences of these two opcodes:
To Reproduce
Steps to reproduce the behavior:
Screenshots
First, at 45ec2 : r2 = 0x040C, but that's just used as an offset, not a full address to a function that happens to exist at 040C :
The compiler shows a much saner line :
DAT_ffff2cc4 = DAT_ffff2cb2;
Next, at 12b04 : the disasm shows the correct ref to DAT_ffff821c, since gbr was set to ffff8000 just earlier.
00012b04 c2 87 mov.l r0,@(0x21c,gbr=>DAT_ffff821c) = ??
But in the decompiler hasn't deduced DAT_ffff821c as the destination :
Expected behavior
Probably something like
00045ec2 0d 25 mov.w r2,@(r0,r13=>DAT_ffff2cc4)
and
DAT_ffff821c = 0x3;
Attachments
6Z68A.zip
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: