Received: from eggs.gnu.org ([2001:4830:134:3::10]:45544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnTnS-0001cB-7j for qemu-devel@nongnu.org; Fri, 23 Sep 2016 12:57:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bnTnO-0000lb-1M for qemu-devel@nongnu.org; Fri, 23 Sep 2016 12:57:57 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:46140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bnTnN-0000dw-SX for qemu-devel@nongnu.org; Fri, 23 Sep 2016 12:57:53 -0400 Date: Fri, 23 Sep 2016 12:10:37 +0000 From: Joseph Myers In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Subject: Re: [Qemu-devel] [PATCH] tcg: increase MAX_OP_PER_INSTR to 395 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Desnogues Cc: "qemu-devel@nongnu.org" On Fri, 23 Sep 2016, Laurent Desnogues wrote: > Hello, > > On Fri, Sep 23, 2016 at 1:53 AM, Joseph Myers wrote: > > MAX_OP_PER_INSTR is currently 266, reported in commit > > 14dcdac82f398cbac874c8579b9583fab31c67bf to be the worst case for the > > ARM A64 decoder. > > > > Whether or not it was in fact the worst case at that time in 2014, I'm > > observing the instruction 0x4c006020 (st1 {v0.16b-v2.16b}, [x1]) > > generate 386 ops from disas_ldst_multiple_struct with current sources, > > Something's odd, I get exactly half of that with 193. Does the number of ops depend on the system for which TCG is generating code? (I'm building QEMU for 32-bit x86.) If 32-bit systems require twice as many ops as 64-bit systems, maybe the existing value should be doubled, so using 532 (plus whatever is needed to allow for extra ops from optimization etc.) - or made conditional on the system for which code is generated. > That being said st1 {v0.16b-v3.16b}, [x1], #64 generates even more ops > with 258. My empirical observations are only from examining cases where QEMU gives errors running GCC tests; it's quite possible some instructions aren't covered, or that the relevant tests got lucky and avoided buffer overruns despite generating too many ops. -- Joseph S. Myers joseph@codesourcery.com