mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-25 05:32:14 +00:00
GT-3278: Corrected XGATE ROR instruction semantics.
This commit is contained in:
parent
c6d14ab55f
commit
d454912a87
@ -762,7 +762,7 @@ rd_hi: reg8 is reg8 & reg8_hi { export reg8_hi; }
|
|||||||
:ROR rd, ximm4 is opcode=0x1 & rd & ximm4 & op3=0xf
|
:ROR rd, ximm4 is opcode=0x1 & rd & ximm4 & op3=0xf
|
||||||
{
|
{
|
||||||
local cnt:2 = ximm4;
|
local cnt:2 = ximm4;
|
||||||
rd = (rd >> cnt) | (rd << (16 - rd));
|
rd = (rd >> cnt) | (rd << (16 - cnt));
|
||||||
|
|
||||||
default_flags(rd);
|
default_flags(rd);
|
||||||
}
|
}
|
||||||
@ -770,7 +770,7 @@ rd_hi: reg8 is reg8 & reg8_hi { export reg8_hi; }
|
|||||||
:ROR rd, rs1 is opcode=0x1 & rd & rs1 & op4=0x17
|
:ROR rd, rs1 is opcode=0x1 & rd & rs1 & op4=0x17
|
||||||
{
|
{
|
||||||
local cnt:2 = rs1 & 0xf;
|
local cnt:2 = rs1 & 0xf;
|
||||||
rd = (rd >> cnt) | (rd << (16 - rd));
|
rd = (rd >> cnt) | (rd << (16 - cnt));
|
||||||
|
|
||||||
default_flags(rd);
|
default_flags(rd);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user