qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [Qemu-devel] [RFC 5/6] target-ppc: add modulo word operat


From: Richard Henderson
Subject: Re: [Qemu-ppc] [Qemu-devel] [RFC 5/6] target-ppc: add modulo word operations
Date: Thu, 21 Jul 2016 15:54:22 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1

On 07/21/2016 01:41 PM, Nikunj A Dadhania wrote:
It would probably be better to use helper functions for both div and mod,
because of the branches required.

C.f. target-arm/helper-a64.c, helper_sdiv64 et al.

What is the thumb rule to implement it has helper?
As I am implementing other instructions as well.

One as you suggested many branches.

Branches, or more than, say, 15 tcg instructions.

The former rule is primarily because branches inhibit all tcg optimization.

The latter rule is more flexible, depending on how many of them you expect may be able to optimize away. For ppc, I would expect few dead code opportunities; those are more for cisc targets that compute flags with every instruction.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]