From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggsout.gnu.org ([209.51.188.92]:52027 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfXsP-0001O2-Ve for qemu-devel@nongnu.org; Fri, 04 Jan 2019 17:23:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfXjs-0005zv-3y for qemu-devel@nongnu.org; Fri, 04 Jan 2019 17:14:51 -0500 Received: from mail-it1-x12d.google.com ([2607:f8b0:4864:20::12d]:40297) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfXjr-0005ym-5W for qemu-devel@nongnu.org; Fri, 04 Jan 2019 17:14:47 -0500 Received: by mail-it1-x12d.google.com with SMTP id h193so3388510ita.5 for ; Fri, 04 Jan 2019 14:14:45 -0800 (PST) References: <945511ac-d99a-d483-12a2-e6ad4dda09c2@linaro.org> <38b906b7-56a6-a0dc-95f3-365452b59099@linaro.org> From: Richard Henderson Message-ID: <85031ff4-cc90-32f7-1ec4-e342a5d52f34@linaro.org> Date: Sat, 5 Jan 2019 08:14:37 +1000 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] AVX support for TCG List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Nick Renieris Cc: QEMU Developers On 1/5/19 8:09 AM, Nick Renieris wrote: > Στις Παρ, 4 Ιαν 2019 στις 11:51 μ.μ., ο/η Richard Henderson > έγραψε: >> As an integer it is always passed by value. As a structure some host abis pass >> it by reference, and the TCG compiler doesn't know about that. > > Ah so they modify it? If so it could surely be worked around with > explicit stack copies, right? No, it's just calling conventions. And it could be worked around, but I think what we have is convenient enough. Especially since the sizes are encoded as (n+1)*8, which also shows the compiler that the size is positive, so the for loop must iterate at least once. r~