mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-21 19:42:14 +00:00
Processors/PowerPC: Use FLOAT_NEG on fneg and fneg. instructions
It was causing weird decompilation output.
This commit is contained in:
parent
49c2010b63
commit
e51128e46f
@ -1577,15 +1577,13 @@
|
||||
#fneg fr0,fr0 0xfc 00 00 50
|
||||
:fneg fD,fB is $(NOTVLE) & OP=63 & fD & fB & BITS_16_20=0 & XOP_1_10=40 & Rc=0
|
||||
{
|
||||
tmp:8 = (~fB) & 0x8000000000000000;
|
||||
fD = (fB & 0x7fffffffffffffff) | tmp;
|
||||
fD = f- fB;
|
||||
}
|
||||
|
||||
#fneg. fr0,fr0 0xfc 00 00 51
|
||||
:fneg. fD,fB is $(NOTVLE) & OP=63 & fD & fB & BITS_16_20=0 & XOP_1_10=40 & Rc=1
|
||||
{
|
||||
tmp:8 = (~fB) & 0x8000000000000000;
|
||||
fD = (fB & 0x7fffffffffffffff) | tmp;
|
||||
fD = f- fB;
|
||||
cr1flags();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user