|
From: | Richard Henderson |
Subject: | Re: [PATCH 6/8] tcg/aarch64: Support TCG_TARGET_SIGNED_ADDR32 |
Date: | Wed, 13 Oct 2021 14:05:05 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 10/11/21 3:28 AM, Alex Bennée wrote:
+ if (TARGET_LONG_BITS == 64) { + return 3; /* LSL #0 */ + } else if (signed_addr32) { + return 6; /* SXTW */ + } else { + return 2; /* UXTW */ + } +}If this is is going to be a magic number we pass into our code generation we could at least wrap it in a confined enum rather than a bare int we chuck around.
Given that it's used exactly one, and commented, and matches the ARM, do we really need an enum?
r~
[Prev in Thread] | Current Thread | [Next in Thread] |