mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GT-3278: Corrected XGATE ROR instruction semantics.
This commit is contained in:
parent
c6d14ab55f
commit
d454912a87
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue