From patchwork Tue Jul 9 07:50:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 168725 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp8209561ilk; Tue, 9 Jul 2019 00:51:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFbuZrCQAol1y2tcBdpzw+3zDqLl2Fcboml628Dl91wk6H9gLZdPfBXFwosMxy0RvQponb X-Received: by 2002:a50:8825:: with SMTP id b34mr24182668edb.22.1562658697416; Tue, 09 Jul 2019 00:51:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562658697; cv=none; d=google.com; s=arc-20160816; b=wu3683covUXpVtEZSER+ZZYeB7qFHMG5/NHiZnIiN0dTEHRUFX9Xt1aVjfMUeW+4xI Fp18UfYmxy55jkltFjFNaPcCtE9m1eElq+tSojKogvofzcYRAeQwIHH3I77qrTKTJxi3 5Qr+UPZPuAbbf+QnGtSihkQE4NMOCcnSXTVruN0mSX93cdw1wzLZyggzUxy9eSR6wokR rH+bQc+WdGqZNnQsEEnw1jFd56+Gap9GsqAoe6VRZsYcteabskmkrp5aYI3hvKLb0+K2 SUZ8kRsKrWluW/EDOIeZ802Vcw7GrY8OfMkMNYYykZe9StgYoBrV+WBOPwpBAM9wBKI9 aj/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=cAdcykhsBr9KRoTt+e4UsNPsrOD05Rn6WRA4P8vaXKM=; b=UukezlZXS6C6z8DPjWdWxCUmM7BW7jLDtQ05oWvpzKiEvCbBJAH00gvKkQhIHHf0+e u5rQ7MSsZ6fPBI1XFrYodXttb4jJ1USDzXjo6eGDhh95uTX11Cr0ZtmK1gaP3aDlS4Sh 7LitJC4RqfZbIKr0Ur6Pb+ufnWKnunaK3WWfVgsnH7Me913uTTxhSbg0X6ex/TH95hIZ gVEGam1RLs+FLM2CBc2DNrBVIJBe2ZDupErfwr6/T7Q7UaDsHPslPHNuQpS7JMqDMbNe hdSh7IKiM0qILhMJm3YzW1MeDhalwKDOFgp3etaYdZnypO/qR4iuaPFmZE2C7NDvT9S9 MhxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=HYNIrH28; 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=fail (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 w16si5928885ejj.232.2019.07.09.00.51.37 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Jul 2019 00:51:37 -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=fail header.i=@linaro.org header.s=google header.b=HYNIrH28; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkkuW-0005lZ-DM for patch@linaro.org; Tue, 09 Jul 2019 03:51:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52154) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkkty-0005jh-Tp for qemu-devel@nongnu.org; Tue, 09 Jul 2019 03:51:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkktx-00012A-W3 for qemu-devel@nongnu.org; Tue, 09 Jul 2019 03:51:02 -0400 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:44159) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hkktx-000116-Os for qemu-devel@nongnu.org; Tue, 09 Jul 2019 03:51:01 -0400 Received: by mail-pg1-x543.google.com with SMTP id i18so9010099pgl.11 for ; Tue, 09 Jul 2019 00:51:01 -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; bh=cAdcykhsBr9KRoTt+e4UsNPsrOD05Rn6WRA4P8vaXKM=; b=HYNIrH28ZpPg18i1vmo5d8l1oNT6QxQMUi1kMKAb9z5YjaRQtND+t8FXDt3/cBdw/d 6aHogVRJPt1ij8yvHdcCrSQxnsVNB4bOSv7w2ABVlGpUVnbAmXxRTl6OGSLhANPMAGJ0 mIHshu0+JpHJIARZ69TOiDIgSjUuHmefK/ZFqCxuwUZURspSMJsvF+PbzPJfdPWRfJ3Z nIfwDDxHnybLa3tsgMeDvDr/hZNdh4ZOHY1CPnWSJqdZMeBhNWv6v9DBynSHvKEeegUa cdHtz6f2bBzGRWwDnzv7H8nvlPnFspGdeNkNlbbAthRFVmGNeEVCeb1E2/9N5quYIKoc yczg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cAdcykhsBr9KRoTt+e4UsNPsrOD05Rn6WRA4P8vaXKM=; b=nfV/iZLqIcUAZs7i3QUj+ThiYb6Xs9GK8QfeqV5Eus4/yfhL9AKCfRBUGW5PulAsDW J/J/vu4iHzHBx3CSZ1fRhDEB8ogF9ZEc4/f0CxhWGFaJyPihNt4o4EwCZn3GlZSzarLQ K4Ed8XuubnyWbhSGFaaMTNXe00BnZB8nSuztlI7/TDL/sRBu/3wu+WBOlO21X7G/hoaz hNRDdObzsun817R9hS22TOa42hjaGecvh3c7AquXJq1VJZAt7R2rcQJ5EQ4P1Jc/yHsN DM5xzs+ZQPt4pO03vf9pZ/RGIPWzc6jQFhiLLh92fOFJi6nnJ7hWylrjbBioQt6pyslb XsXA== X-Gm-Message-State: APjAAAVxJPGeVAT9aoCAKq+HCfY5koT9MKKOBA/36NWWdlW3uGScFWQK uBfxwdPO5OjeCW/mqill8kmkzBsaJUnFeA== X-Received: by 2002:a17:90a:3544:: with SMTP id q62mr31463542pjb.53.1562658660342; Tue, 09 Jul 2019 00:51:00 -0700 (PDT) Received: from localhost.localdomain ([172.56.12.212]) by smtp.gmail.com with ESMTPSA id y22sm28237375pfo.39.2019.07.09.00.50.57 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 00:50:59 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 9 Jul 2019 09:50:39 +0200 Message-Id: <20190709075042.13941-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190709075042.13941-1-richard.henderson@linaro.org> References: <20190709075042.13941-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::543 Subject: [Qemu-devel] [PULL v2 1/2] tcg/riscv: Fix RISC-VH host build failure X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, Alistair Francis Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Alistair Francis Commit 269bd5d8 "cpu: Move the softmmu tlb to CPUNegativeOffsetState' broke the RISC-V host build as there are two variables that are used but not defined. This patch renames the undefined variables mask_off and table_off to the existing (but unused) mask_ofs and table_ofs variables. Signed-off-by: Alistair Francis Message-Id: <79729cc88ca509e08b5c4aa0aa8a52847af70c0f.1561039316.git.alistair.francis@wdc.com> Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/tcg/riscv/tcg-target.inc.c b/tcg/riscv/tcg-target.inc.c index 1f0ae64aae..3e76bf5738 100644 --- a/tcg/riscv/tcg-target.inc.c +++ b/tcg/riscv/tcg-target.inc.c @@ -980,8 +980,8 @@ static void tcg_out_tlb_load(TCGContext *s, TCGReg addrl, int table_ofs = fast_ofs + offsetof(CPUTLBDescFast, table); TCGReg mask_base = TCG_AREG0, table_base = TCG_AREG0; - tcg_out_ld(s, TCG_TYPE_PTR, TCG_REG_TMP0, mask_base, mask_off); - tcg_out_ld(s, TCG_TYPE_PTR, TCG_REG_TMP1, table_base, table_off); + tcg_out_ld(s, TCG_TYPE_PTR, TCG_REG_TMP0, mask_base, mask_ofs); + tcg_out_ld(s, TCG_TYPE_PTR, TCG_REG_TMP1, table_base, table_ofs); tcg_out_opc_imm(s, OPC_SRLI, TCG_REG_TMP2, addrl, TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS); From patchwork Tue Jul 9 07:50:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 168726 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp8211001ilk; Tue, 9 Jul 2019 00:53:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5yokxreqpc8/DWcNyD/rS4UmNIHw4DKQfP4XoAfG/WCNL5nR/wb5yE3JpPK4W4mLk9OHY X-Received: by 2002:a50:b566:: with SMTP id z35mr24901245edd.129.1562658790829; Tue, 09 Jul 2019 00:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562658790; cv=none; d=google.com; s=arc-20160816; b=IqIPBFiD6WrbejR8TtdA+ZEu195T39R1Cv9CTSzMbq8feE+BRYcMEkrA0tQQD45o70 2p5Dn1dniIeeLl3LloXVWndDKIesm4rRI9yphnnOssZZNucXb7gre9EcdkdepO2PZF0Y OVZL0R/UERohqKzzolVCQv1zLTkLBT6GhKHkt7/y/8F57fJ7SCNZ3CAggFRfqT8K+qyJ OJxec89KlASn4WQFsqo0t7TojDWBuSO2j/zWU9Cd+rBkFb47tG/QbLzPH6t77aPjpLw2 n7YKlbFEzymKc17gNSYJdDsI3fqNQX0Uw6BqjmnLfH0M5XplmfffRQjvi7GoVck0Z7LP 4ncg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=ty0ceSlhLSlZJKGDv3kDThADamDPPm/37CRvid7ZnoA=; b=t7DxPmyRf0JpF5xDWR4Qzu/G1AwNFDseW3TPGBlipJ8sq1Yg1jlov2cAEG5xfhytXt hNDT/6DUEmUs/sj7Zv1FQy4/T9t7UaWmzWRgGgwwsVxR44CKU6FWa0V0s4xAtmlcbaWg TqEEOc8lz7Z8OHnVKAaBZYTTwMaI0EMTG9xDt55h6x8NmXwAnJTgE024NZ90oPdlvO+/ Vqgo8bbdcNsrukDwodd/aBqAMt/++jbjz5NC/VEBZFeBFFUI//Adq/T+2ELuqrHNSGKG xegWGd0ArDlVAa/adZExbQLsU4+GlhwLyCyIp+s2nOwkkc8ImKJsn25qVKxOZYwMTaS7 DdoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=xweQd2n7; 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=fail (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 k20si8529772ejq.383.2019.07.09.00.53.10 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Jul 2019 00:53:10 -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=fail header.i=@linaro.org header.s=google header.b=xweQd2n7; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkkw1-0008LG-Qc for patch@linaro.org; Tue, 09 Jul 2019 03:53:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52178) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkku1-0005k2-Uw for qemu-devel@nongnu.org; Tue, 09 Jul 2019 03:51:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkku1-00014I-16 for qemu-devel@nongnu.org; Tue, 09 Jul 2019 03:51:05 -0400 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:45717) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hkku0-00013s-Rl for qemu-devel@nongnu.org; Tue, 09 Jul 2019 03:51:04 -0400 Received: by mail-pf1-x442.google.com with SMTP id r1so8855621pfq.12 for ; Tue, 09 Jul 2019 00:51:04 -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; bh=ty0ceSlhLSlZJKGDv3kDThADamDPPm/37CRvid7ZnoA=; b=xweQd2n7cOIjNj1oVwpUquouhsktuT9M2HAcdKSu8OhqeiE6bNGVunXkJew9aYfMvV +3dsnpfiQxQvNGiLWQ2e1xLB3YxFeJNvaZstZE9u/A2BqtVRnokA1UNhEtekUO6y3LYC O1iIDmkLUMOn9Hgr38/tH+XiwJjtbZBljVMa6eCfSfQUkZJPIqLlj8hZojflET5lQe7C s8rzLdaSXl6dnmIr9Oz49aogjm4Bo0s8IHgCutEKPzzrIgRKs2b4vXmGOp2XJ/Xyz9UO /vcaJvu9j5OC+LGqVB2gem+WK1ugkg76HBkBhj0otURW/gkNbylfjpKZgsZWnfGOTv+E CJ2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ty0ceSlhLSlZJKGDv3kDThADamDPPm/37CRvid7ZnoA=; b=m0WFpLNq1Wyy3+5vb1Ro+O2n9GxoYNFvoqv26glcsb7DvvwdCbx4QfHBsliMckLZa9 jNv96N3rTZPYOuVUukD9/VqYh5dOmmMLyvH+StHtPaUXbvHpO3bVX39N2wuroJn/b4vS OjsOJ01VNvX0Fy7VsVPiwVgXraSQUpaLO7JGQ5nq1t7kmytZPeVdWmCQ4TwIkgS1nlOb w7wdjH50kN3JYXxbyxC7SbSaxmC50EJgsWZq4suKtrAuZKEzcXVpZJyun+f4S69lC3bG plE8UbAKKwuE5GjOhmRsoc+4CNUkOWQKvDmhJzVz7PD5R7UjGsQ1bNejbT76BAXiivei 6/dg== X-Gm-Message-State: APjAAAU7Y2nonKeppOTN2cTdT8MfywokJFPb2kB69IrrGwk13paF+h0Y FNgsdy3KgQl0Pog9mR0cJhJm4YYvFBbXUg== X-Received: by 2002:a17:90b:f12:: with SMTP id br18mr29911992pjb.127.1562658663545; Tue, 09 Jul 2019 00:51:03 -0700 (PDT) Received: from localhost.localdomain ([172.56.12.212]) by smtp.gmail.com with ESMTPSA id y22sm28237375pfo.39.2019.07.09.00.51.00 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 00:51:02 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 9 Jul 2019 09:50:40 +0200 Message-Id: <20190709075042.13941-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190709075042.13941-1-richard.henderson@linaro.org> References: <20190709075042.13941-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::442 Subject: [Qemu-devel] [PULL v2 2/2] tcg: Fix expansion of INDEX_op_not_vec X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This operation can always be emitted, even if we need to fall back to xor. Adjust the assertions to match. Signed-off-by: Richard Henderson --- tcg/tcg-op-vec.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.17.1 diff --git a/tcg/tcg-op-vec.c b/tcg/tcg-op-vec.c index c8fdc24f56..6714991bf4 100644 --- a/tcg/tcg-op-vec.c +++ b/tcg/tcg-op-vec.c @@ -90,6 +90,9 @@ bool tcg_can_emit_vecop_list(const TCGOpcode *list, case INDEX_op_bitsel_vec: /* These opcodes are mandatory and should not be listed. */ g_assert_not_reached(); + case INDEX_op_not_vec: + /* These opcodes have generic expansions using the above. */ + g_assert_not_reached(); default: break; } @@ -438,11 +441,14 @@ static bool do_op2(unsigned vece, TCGv_vec r, TCGv_vec a, TCGOpcode opc) void tcg_gen_not_vec(unsigned vece, TCGv_vec r, TCGv_vec a) { + const TCGOpcode *hold_list = tcg_swap_vecop_list(NULL); + if (!TCG_TARGET_HAS_not_vec || !do_op2(vece, r, a, INDEX_op_not_vec)) { TCGv_vec t = tcg_const_ones_vec_matching(r); tcg_gen_xor_vec(0, r, a, t); tcg_temp_free_vec(t); } + tcg_swap_vecop_list(hold_list); } void tcg_gen_neg_vec(unsigned vece, TCGv_vec r, TCGv_vec a) From patchwork Tue Jul 9 07:50:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 168729 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp8211383ilk; Tue, 9 Jul 2019 00:53:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyABZnnDMkNgMIcKluV8l1fbYm7rCiRFO6hrtY+Kw0dqsYWs9xA/N3uM7GcqgKUI/Z3V1It X-Received: by 2002:a50:9799:: with SMTP id e25mr22868513edb.79.1562658811758; Tue, 09 Jul 2019 00:53:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562658811; cv=none; d=google.com; s=arc-20160816; b=QeDDEZroO2FneuAh4vua/nk/g7u96U76CDSGl5uXds/HCkf8++Zibpp2Nk4e2w0LKh Ekr31Qn/fmy8WW5MT8sOK434zQEt75wGiPYTfYldWCJgGSoC445pqiQ7Xt88lzqaQOSf YoQqo8rGX1uH8RocSAKrhunqZG4VK+G9TVB/uVlNMdzfau7NwG7EnALe1lhH/lyIfr2Z 2vUp//Hx3mKlZ6LoyQbHrZ8c+CkGjllzKmSoeYiykPm3aZpjh2bbMGhXP67DdA8B1557 J8FuTU2RdkQVFBQjdBsImck3asL5QY8Y7I94cNLdJ5FeqxiaCXNwdgCAZ9U7s9yzPtYn fUiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=ty0ceSlhLSlZJKGDv3kDThADamDPPm/37CRvid7ZnoA=; b=PezAFPB12AOg0Ht8MEUM1O3HgRNg4NGwuc3d+Y8bKEf12jOQUx/QsmR1juL/1gayQV w4AK3wullKH/XuVOmQy8TQLEHYwjk014XNrdofEYuMHtrjfcF4JvAyedl1r/9EXV3IaP fLimu+uD81QNEavs2af034wn1IjP0yWbN6jr3rmwm3IoE1OhPTU903Oqjjli6Y/ZbRBO H/43c6+Uwm9SL6v02Sm+FYJ5omG224R/PbxEPRUC6dsZ86jInhPRMcavVFGo9pr9EZt+ D9xQA6rZSTAySaQt5WItVqnH40LR0OQ9KXbW1pqHgDs7Fxt2hoiDnkAMXsagYGA8n0u+ Vtxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=eWVcSsFq; 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=fail (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 dc19si5610408ejb.324.2019.07.09.00.53.31 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Jul 2019 00:53:31 -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=fail header.i=@linaro.org header.s=google header.b=eWVcSsFq; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkkwM-0008Rw-Nb for patch@linaro.org; Tue, 09 Jul 2019 03:53:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52223) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hkku9-0005rK-Us for qemu-devel@nongnu.org; Tue, 09 Jul 2019 03:51:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hkku8-0001BO-U0 for qemu-devel@nongnu.org; Tue, 09 Jul 2019 03:51:13 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:41979) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hkku8-00019N-Nv for qemu-devel@nongnu.org; Tue, 09 Jul 2019 03:51:12 -0400 Received: by mail-pf1-x443.google.com with SMTP id m30so8873280pff.8 for ; Tue, 09 Jul 2019 00:51:11 -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; bh=ty0ceSlhLSlZJKGDv3kDThADamDPPm/37CRvid7ZnoA=; b=eWVcSsFq9aLtDqtSBovb1RXNVYi06MIZTx56QqIKqG9j3TY5gU/ZweOs6GXXjFukWQ S4ATp2+8TJg2v/yeVLaAqmvZzSsl+LUM4q8tL0YZgdOLJbSqBN6/Wug6OIHfM/X2brty nKVnwEp9hwJ6Cpx6HNfpTjEseWl6BAQaQxpDlrJDNuXMVYGBPU5WzSPPdOKK+UM3w4ng 4K3dH9yX3uRHet9lQitMSsAzaUAc4KmNkkYlSLBK69aRWO5bEG2zuPA91Ef66acY0i8w iyXTmAOV/4W5dK7usOsv4rIToP+9LJ5E04FyKHN6nhq3/msOFujHkX0KIE0hSU0qAxPY B/hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ty0ceSlhLSlZJKGDv3kDThADamDPPm/37CRvid7ZnoA=; b=Kp43iMVTTJzAqS+ap49HAXowaKGWneYYxLpjQGauVomO8FaPxAR5+ilrSEIofPkLnX G8L5ZPL0vUgiMhz7S5mbmjx3UhvKVJJJCvly3+Xmqk+5A38jgpQ15UYaD+b6VLhx7U5/ eJuvIHjL0o0uc3UCKB91BCb6z2W+bL0/unku7+XZz1B5caQOu0uuRlwPAsh/Ddnfz1fj kZeINUBNRr7gXY0hnC+LohGCHcho4tyG6f1fZY2u9L4M+YbF1mJlPA0kE0q09xyx8Z4A 5pzvZ4IjOrkiChoOmwOmJuH9O/xaRTZs5ZSygZnlB9owrDI77LWcnyhqaapjTY+Opr3k HyFw== X-Gm-Message-State: APjAAAUe1K0OwZjE5TLxLzuGMsn5bpw1ktMjnQ2A6dfOSnI2/26au0/A lVwncFhx+PIe/NUViENGwEyqfwM7nqZwMQ== X-Received: by 2002:a17:90a:24ac:: with SMTP id i41mr30885394pje.124.1562658670711; Tue, 09 Jul 2019 00:51:10 -0700 (PDT) Received: from localhost.localdomain ([172.56.12.212]) by smtp.gmail.com with ESMTPSA id y22sm28237375pfo.39.2019.07.09.00.51.07 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 09 Jul 2019 00:51:10 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 9 Jul 2019 09:50:42 +0200 Message-Id: <20190709075042.13941-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190709075042.13941-1-richard.henderson@linaro.org> References: <20190709075042.13941-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::443 Subject: [Qemu-devel] [PULL 3/3] tcg: Fix expansion of INDEX_op_not_vec X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This operation can always be emitted, even if we need to fall back to xor. Adjust the assertions to match. Signed-off-by: Richard Henderson --- tcg/tcg-op-vec.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.17.1 diff --git a/tcg/tcg-op-vec.c b/tcg/tcg-op-vec.c index c8fdc24f56..6714991bf4 100644 --- a/tcg/tcg-op-vec.c +++ b/tcg/tcg-op-vec.c @@ -90,6 +90,9 @@ bool tcg_can_emit_vecop_list(const TCGOpcode *list, case INDEX_op_bitsel_vec: /* These opcodes are mandatory and should not be listed. */ g_assert_not_reached(); + case INDEX_op_not_vec: + /* These opcodes have generic expansions using the above. */ + g_assert_not_reached(); default: break; } @@ -438,11 +441,14 @@ static bool do_op2(unsigned vece, TCGv_vec r, TCGv_vec a, TCGOpcode opc) void tcg_gen_not_vec(unsigned vece, TCGv_vec r, TCGv_vec a) { + const TCGOpcode *hold_list = tcg_swap_vecop_list(NULL); + if (!TCG_TARGET_HAS_not_vec || !do_op2(vece, r, a, INDEX_op_not_vec)) { TCGv_vec t = tcg_const_ones_vec_matching(r); tcg_gen_xor_vec(0, r, a, t); tcg_temp_free_vec(t); } + tcg_swap_vecop_list(hold_list); } void tcg_gen_neg_vec(unsigned vece, TCGv_vec r, TCGv_vec a)