target/ppc: Move add and subf type fixed-point arithmetic instructions to decodetree
authorChinmay Rath <rathc@linux.ibm.com>
Wed, 14 Feb 2024 09:40:27 +0000 (15:10 +0530)
committerNicholas Piggin <npiggin@gmail.com>
Tue, 12 Mar 2024 16:47:04 +0000 (02:47 +1000)
commita9bd40d9375451c0990d5ae0154b166f745bc458
tree9c27e60dc3896a78acee7614be98e5bea5631c29
parent623d9065b68d4fc4fc420aaacac5eadf8d0d265f
target/ppc: Move add and subf type fixed-point arithmetic instructions to decodetree

This patch moves the below instructions to decodetree specification:

        {add, subf}[c,e,me,ze][o][.]       : XO-form
        addic[.], subfic                   : D-form
        addex                              : Z23-form

This patch introduces XO form instructions into decode tree
specification, for which all the four variations([o][.]) have been
handled with a single pattern. The changes were verified by validating
that the tcg ops generated by those instructions remain the same, which
were captured with the '-d in_asm,op' flag.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Chinmay Rath <rathc@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
target/ppc/insn32.decode
target/ppc/translate.c
target/ppc/translate/fixedpoint-impl.c.inc