qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 06/30] tcg/loongarch: Define the operand constraints


From: Richard Henderson
Subject: Re: [PATCH 06/30] tcg/loongarch: Define the operand constraints
Date: Mon, 20 Sep 2021 07:28:44 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

On 9/20/21 1:04 AM, WANG Xuerui wrote:
+static inline tcg_target_long sextreg(tcg_target_long val, int pos, int len)
+{
+    if (TCG_TARGET_REG_BITS == 32) {
+        return sextract32(val, pos, len);
+    } else {
+        return sextract64(val, pos, len);
+    }
+}

You don't need this conditional.  Just use sextract64 directly.


r~



reply via email to

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