From e51128e46fea2a0330e66e05df2c1ee51ed9e7bc Mon Sep 17 00:00:00 2001 From: aldelaro5 Date: Tue, 9 Apr 2019 01:09:38 -0400 Subject: [PATCH] Processors/PowerPC: Use FLOAT_NEG on fneg and fneg. instructions It was causing weird decompilation output. --- .../Processors/PowerPC/data/languages/ppc_instructions.sinc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc b/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc index 359a6026cf..8930e796da 100644 --- a/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc +++ b/Ghidra/Processors/PowerPC/data/languages/ppc_instructions.sinc @@ -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(); }