From patchwork Fri May 27 18:18:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 576586 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:8607:0:0:0:0 with SMTP id bb7csp912448mab; Fri, 27 May 2022 12:16:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBk/fR2FzhnbhXOPZAGmiuk0aX008/9YYhy+JWhAScGPZMY4w+8jJcrwKxPtiX9PChrmO5 X-Received: by 2002:a05:620a:1a09:b0:6a5:85ce:a302 with SMTP id bk9-20020a05620a1a0900b006a585cea302mr12207370qkb.714.1653679012146; Fri, 27 May 2022 12:16:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653679012; cv=none; d=google.com; s=arc-20160816; b=mRe21Lozs1NZqqN85BfYoh4LIG6sT+0Whd5EORGbvGG04Jbga1hDjwxCoyRVTU0ybj 4N4FjjI+cYI0652CLZ0ao/VZa9ARFsJtqnyzZ/y1ypD88PAr8CZkHicaSYnr0V53B6Oh AuAkNh9Nr6pcgUrCDqxCSiE82ghIvuwU9Iswxdsim0iozzANXfh47mY+LsK6U5DJR3G+ mmCScuZJwok0h651Y54M8ZT7w//nzRyA1pNlNWPxemNe88LSkK9xSPf/keaC/K1qhZAK o6aD0r1Hiyf/VfHh4G6lHavp+HoBSPqjA7HeSVBwA9UlIEXCoPJoStbgwv0OxAyaqPUu g8Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qg4jOWuyGW8gIwmtO3xBqQIVz/6oC7t9pIznMyeg9C0=; b=TX/33YqshsiSWf1/teLL3VvW3GnldDdPhu9OoGKKn45+zH0kwfZZ7v1J1W/1ManZ0E AH5so2cdwn8j1w231EV6w8vuD1eG0w15ZLSK0bLNRY3CmihO8/UkSlx4BIadHwxIwKva g645T8jLZWfWjRH2mARjHDpwmm3WHeTPZTf31enW8+sWs3aBHir4zzibJqqkP/xx5enl OkdLP6A4mdrT3yG1vyfVeLOY4ZMqz2HHw1y2kADqAJLvM2F3MtUAWt3Q9HK23pom3Jwd 9mvYIcl9/bMSjpsHg71hqUu2H8stqP4325sZs/f4dOab/qrFnTinscKqNUurgAyW08Kp /HZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HpTmF0G+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id o3-20020ac87c43000000b002f3e942be48si3095844qtv.46.2022.05.27.12.16.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 May 2022 12:16:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HpTmF0G+; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:59204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nufS7-0002MY-Np for patch@linaro.org; Fri, 27 May 2022 15:16:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuecT-0003lm-Jl for qemu-devel@nongnu.org; Fri, 27 May 2022 14:23:29 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:56094) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuecK-0004V7-NT for qemu-devel@nongnu.org; Fri, 27 May 2022 14:23:29 -0400 Received: by mail-pj1-x102a.google.com with SMTP id n10so5266795pjh.5 for ; Fri, 27 May 2022 11:23:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qg4jOWuyGW8gIwmtO3xBqQIVz/6oC7t9pIznMyeg9C0=; b=HpTmF0G+AczJGNffqHzzx0Lu+WAwJUDv6tqtmG8AaeEOQlZR6Ui1+taboyeSG9MIDv E0C3ZkCWkM8TAqZdDrEjDJpMzF+/i/a8M4Wxn07IST8RgRrqFL9mPvbNp9dDksy6NMyu izaMpL5DEXm4nEpWVzcSTbQondNBda2kQ0kksvB2dCiKsftBAcmH65UwJoWWgg5LVmAG kF6dClBfxqjyOcO+nto9MuY49PLFWOUv0OAfKzA0Ih2VC84Z9hE2vNV3m6VyI6NLhWO9 tV2I9F5lhO0shFiaDQ43e+WwSVK/HKzIkT18YhCZS60VtGD99Pg23F5rrJXCQuJdNQDY BtEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qg4jOWuyGW8gIwmtO3xBqQIVz/6oC7t9pIznMyeg9C0=; b=JgyzrgbhDGwRVEi08ceQu7qfOOysxHvSOTkwM28KgEM6zAcHX8GXCrMdCr6l48kk4+ I6wJv6dZKMEuV7YJ8tcjhvUdf/w6eziiSmChadm/7A+xWLYQOcBKAcucWyom/fS0k6U9 qvxMnPvfPgDblvmVWlYldOBIdB62QHoXy+3UuEByNuE56ptBgp2OtygAZLpernQdHS4j ywCN75UHid4SJXyrjzkMqS7JaQ98fMEu5P3rF1UoFEqTWQxnrziSXrHilyVfukAB57WV jcrqcWrBMvfM8pl9nATIqSYXjvHoIggU4YO4SSVc8Bo1anKlvc+sNfr8PxCbNjwmxzKH hMmA== X-Gm-Message-State: AOAM530nSpSPX8I9X8ku33ZG7C3XPYv/jpU0kpEn817wTFaIrH1dP7CQ qKl/xS4JnM12r9b1NAoUxvbY+2b06nWUDg== X-Received: by 2002:a17:90a:149:b0:1df:3da1:3549 with SMTP id z9-20020a17090a014900b001df3da13549mr9669771pje.90.1653675798217; Fri, 27 May 2022 11:23:18 -0700 (PDT) Received: from stoup.. (174-21-71-225.tukw.qwest.net. [174.21.71.225]) by smtp.gmail.com with ESMTPSA id b15-20020a170903228f00b00163552a0953sm4033534plh.159.2022.05.27.11.23.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 11:23:17 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH 076/114] target/arm: Use TRANS_FEAT for do_zzi_ool Date: Fri, 27 May 2022 11:18:29 -0700 Message-Id: <20220527181907.189259-77-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220527181907.189259-1-richard.henderson@linaro.org> References: <20220527181907.189259-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index e6434589f4..b8bd1047b0 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -3330,14 +3330,11 @@ static bool do_zzi_ool(DisasContext *s, arg_rri_esz *a, gen_helper_gvec_2i *fn) } #define DO_ZZI(NAME, name) \ -static bool trans_##NAME##_zzi(DisasContext *s, arg_rri_esz *a) \ -{ \ - static gen_helper_gvec_2i * const fns[4] = { \ + static gen_helper_gvec_2i * const name##i_fns[4] = { \ gen_helper_sve_##name##i_b, gen_helper_sve_##name##i_h, \ gen_helper_sve_##name##i_s, gen_helper_sve_##name##i_d, \ }; \ - return do_zzi_ool(s, a, fns[a->esz]); \ -} + TRANS_FEAT(NAME##_zzi, aa64_sve, do_zzi_ool, a, name##i_fns[a->esz]) DO_ZZI(SMAX, smax) DO_ZZI(UMAX, umax)