target/hppa: Optimize UADDCM with no condition
commitababac165b375b617e5b333536b846a33c48006e
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 25 Mar 2024 02:26:41 +0000 (24 16:26 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 27 Mar 2024 22:15:25 +0000 (27 12:15 -1000)
tree99b9cf66b93bbd7038f91a0c4b56d6047e756dc9
parentd0ae87a27c212b4dda1b5e83507f5ebdfd019097
target/hppa: Optimize UADDCM with no condition

With r1 as zero is by far the most common usage of UADDCM, as the
easiest way to invert a register.  The compiler does occasionally
use the addition step as well, and we can simplify that to avoid
a temp and write directly into the destination.

Tested-by: Helge Deller <deller@gmx.de>
Reviewed-by: Helge Deller <deller@gmx.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/hppa/translate.c