From patchwork Thu Mar 10 20:27:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 550140 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6713:0:0:0:0 with SMTP id u19csp1337176mag; Thu, 10 Mar 2022 12:30:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzN0WGQwQAsnnM/LMNpkbvWA7wRlquMaUQffFtQrk2zFnhZik96uObCK+3BNCqccvdONLPV X-Received: by 2002:a25:e7c4:0:b0:629:415b:40b5 with SMTP id e187-20020a25e7c4000000b00629415b40b5mr5212708ybh.315.1646944256453; Thu, 10 Mar 2022 12:30:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646944256; cv=none; d=google.com; s=arc-20160816; b=WMwC5dGHxinkk7R2jPa/mhquNYLuk+5dqfhpR4OdeRzdT03wFxE0uHurs2sDjbQTuz ezu1TSbK3R5bAhysGbBZNAiqFmtq+PTRHM49v1cvhzHCovywQkDDCKamYY/VdmS47o3T DnKo9LoTZQnjJZQmTV8p9M/KXfxKg6qS1AzraE7eC6BMfVHaXf531DBhLMODOZT8kemS CtpAmJ9WQT2VEL3M6ZzKoCjyeNKrGta8LNbEJth1UHV9mYTMealaERM9NabiuGymsvii 7eoFs/miZiY2btHsAWIkKnLwBDAXoJ9nixlYGQaPm2GQO160zXAi+b31SSB9v7JvgNIa zOsA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=z0nTGi36Q6kY2XhTWFaFoUNK+G34o+/T62xUlFxQppc=; b=JfLtPuiyt82NqwvkVOGMSI7CcMvgCVD/WWTdnnn4Dj9/Xwxcz6F8vta1YEqBwrJMKe p1pkeUBxURj/9PkeH9wuZJu5JZGYE+lSJBIc1kGqTEZ0KhOlBjiTaKe5dg9SxY0hUutA S5GnCvhEZVLBqm5AOSPgeC5CMPEFxda2OwKeyPyLVy+HAkJaT+GLeJZ+SIyxpqpoHk5c WEvsMOJLTSEF4Lb+20OM4PqxRS5dSA628mr46K+1iaWTRF423QMPAt3D9G4SLxgpW2/W AjdFhP82qJgzQO+m7MPQJWTh2NG3ggoK631NOnrk0RtRfhDmDNc3RPe+YqtsVaz3db4k 8VKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IyMjYUn+; 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 w9-20020a253009000000b0060ed7a07467si3808319ybw.249.2022.03.10.12.30.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Mar 2022 12:30:56 -0800 (PST) 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=IyMjYUn+; 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]:36680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSPR2-0002Zm-0c for patch@linaro.org; Thu, 10 Mar 2022 15:30:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSPO8-00087h-Im for qemu-devel@nongnu.org; Thu, 10 Mar 2022 15:27:56 -0500 Received: from [2607:f8b0:4864:20::1029] (port=55242 helo=mail-pj1-x1029.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSPO7-0008EU-76 for qemu-devel@nongnu.org; Thu, 10 Mar 2022 15:27:56 -0500 Received: by mail-pj1-x1029.google.com with SMTP id b8so6278105pjb.4 for ; Thu, 10 Mar 2022 12:27:54 -0800 (PST) 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=z0nTGi36Q6kY2XhTWFaFoUNK+G34o+/T62xUlFxQppc=; b=IyMjYUn++pL9X5VfODVSGDopyKpSxSia8jhxaOnmnh2AvYCbNZy8g7+LL7X1HnIANf BlqiWrdLyHu2MyOKaoEZzQpJvjiQDeSP/FcWhKCURBX4wh1ou+C5P2gKdz0YMnCazncQ FKo7n6Z/g3o1av/5wNQ8wick/FsGwUYLLV6KjdBDz7+mByGwMwKt9ObY7jmK/9q9fxQa J0gsyOzpYJX3x5Ppz/h1GxMFROCTmfbMqTNqqQqfxsXHZtvs+D7fIRBFMDgVUy51LkQJ dclvYvZIpy0XFmkZDL87XjV0S4uwmIj8NRac0TsjHabnSKNBhwviHYsadnNJB+oJn7dk eW1Q== 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=z0nTGi36Q6kY2XhTWFaFoUNK+G34o+/T62xUlFxQppc=; b=Ump9biKERLRJ/yaTUrtHgXI5fCKEwNQjLYpBqG0GIbl7PgPtJUjzJ7OoKfBm1eWn/7 zYwJE9GiZl7dXfDzrtZTi9qIj51zS28t1d/py2y8ovajXlf5tGNYV0WjxyGI+o5EsPyo BsrucpTgQBUvXwFsfxI3SFxAGQ0533yImA7EY1dLQqev2m5Imzpt54wv38VnUrgicTSS qrzyjozZ1kP8iwDhroAq/T4iv9X7lippkzx5coUl9niMginVfHRC3yKyjWFff5UNm90s x6Rb86Zr7K1HMv0jOeen0KakknoqTSACqkEpZ0PyMcItzd/aW+fi2YMpx0iji1yh4GQ4 Cymw== X-Gm-Message-State: AOAM530cJn/r5OZbdLFerXVVl1avJ8eRe3vFS5gyXYP+poONRm0rDEBX CGbZLBcIA14pAxQCBfkA8nxrBAyweNkhIw== X-Received: by 2002:a17:90b:1809:b0:1bf:7e9:bdf5 with SMTP id lw9-20020a17090b180900b001bf07e9bdf5mr6991317pjb.52.1646944073750; Thu, 10 Mar 2022 12:27:53 -0800 (PST) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id l9-20020a655609000000b0037589f4337dsm6399938pgs.78.2022.03.10.12.27.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Mar 2022 12:27:53 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 1/3] tcg/s390x: Fix tcg_out_dupi_vec vs VGM Date: Thu, 10 Mar 2022 12:27:49 -0800 Message-Id: <20220310202751.594961-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220310202751.594961-1-richard.henderson@linaro.org> References: <20220310202751.594961-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1029 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1029.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: thuth@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The immediate operands to VGM were in the wrong order, producing an inverse mask. Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target.c.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcg/s390x/tcg-target.c.inc b/tcg/s390x/tcg-target.c.inc index 6e65828c09..508f1bccc7 100644 --- a/tcg/s390x/tcg-target.c.inc +++ b/tcg/s390x/tcg-target.c.inc @@ -2715,7 +2715,7 @@ static void tcg_out_dupi_vec(TCGContext *s, TCGType type, unsigned vece, msb = clz32(val); lsb = 31 - ctz32(val); } - tcg_out_insn(s, VRIb, VGM, dst, lsb, msb, MO_32); + tcg_out_insn(s, VRIb, VGM, dst, msb, lsb, MO_32); return; } } else { @@ -2729,7 +2729,7 @@ static void tcg_out_dupi_vec(TCGContext *s, TCGType type, unsigned vece, msb = clz64(val); lsb = 63 - ctz64(val); } - tcg_out_insn(s, VRIb, VGM, dst, lsb, msb, MO_64); + tcg_out_insn(s, VRIb, VGM, dst, msb, lsb, MO_64); return; } } From patchwork Thu Mar 10 20:27:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 550141 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6713:0:0:0:0 with SMTP id u19csp1337527mag; Thu, 10 Mar 2022 12:31:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0tJ1wnHQ3+OOPYDGikYc7fv9ihjmCCs3G+ztuVxZGoqzDY0Mr+WstXyN8QSe8GnOFnMUm X-Received: by 2002:a25:2308:0:b0:628:9a66:7327 with SMTP id j8-20020a252308000000b006289a667327mr5313378ybj.626.1646944285428; Thu, 10 Mar 2022 12:31:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646944285; cv=none; d=google.com; s=arc-20160816; b=oC+tJlwJeK6e+Z9lgDrDz2cB5KsprEg5laSgb1sNMSmFML4Y4az78mtgx2xyZ2xMBZ W8TZgN6OTgVyPnlUbLIRie/Qc5rC8L64mVxLrPOTQiNWskAkAxi2svkp8gidEZDss4RB 6VL5yOh/op17mr3sRNEBG8Nfkud+FhX+cqSMsTg6iYrajQdAKWZ1Kx+SN5E5RQM8nfIO /RVW1vtrCE7BZXTI8xz1DQ+P0txEwHRQLNM/7JCR/GEvsoi9Z3j+AcGmphope6lM+9HH Y2RVT0JgPYS8ir5WJpbo6j2h2kcarHsazMxFkisdaBr9jNCWi8H1iUA7c5kVMz8Nt5oX 5KgQ== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=B3xcTA+wkvrIgpyo95I1q6jiSwwgZ6r49IcgTrclRMY=; b=p+efk0CUlR3mAQyf9uJpi8iVBHqYSEyDdlLpDqde2YZZKNr1QsdIdIhKlyDXiGsEd8 wuqRP7q1LWqDU1Wz4Spo1m4VlJO+4zJMGgoohZUV6cgLBRTHf6Mr+AvzxqZTsSzfGutE wPrrV/IUcg19oLC5/VmFS98ZUJsyVqUwU6nw/zlPKoH65GKP+j8nAvIpVmvQfd9BL+21 a3pcTEP7BDbznK5MvzP8A2j7Uqy0IsxjsRN0PnPZoVge9xyDJiJjNB2fzRhmG9EYehGL 2SF/I4Ds/W92jv8QTrOmgMXEDdwZIuIFQMumOfm3UC5HHGvcwogNoxAtCEDR1k9D8+cm vmSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I5Th7J3R; 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 n193-20020a0dcbca000000b002dc5589a381si4169442ywd.188.2022.03.10.12.31.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Mar 2022 12:31:25 -0800 (PST) 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=I5Th7J3R; 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]:39024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSPRU-0004Dr-Ug for patch@linaro.org; Thu, 10 Mar 2022 15:31:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSPO9-00089E-G3 for qemu-devel@nongnu.org; Thu, 10 Mar 2022 15:27:57 -0500 Received: from [2607:f8b0:4864:20::102e] (port=41639 helo=mail-pj1-x102e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSPO7-0008Em-UO for qemu-devel@nongnu.org; Thu, 10 Mar 2022 15:27:57 -0500 Received: by mail-pj1-x102e.google.com with SMTP id fs4-20020a17090af28400b001bf5624c0aaso6310287pjb.0 for ; Thu, 10 Mar 2022 12:27:55 -0800 (PST) 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=B3xcTA+wkvrIgpyo95I1q6jiSwwgZ6r49IcgTrclRMY=; b=I5Th7J3RW8Ztk1SpZaMiJ43ac0JIXrLjDTgASYIvs5LWTlVr+zWW/D1N2lTYJoegmm 77RpTsW+WH2H4kVffcwgLWcwTpePvU/Bq1SPTIKYQuFaC0L2hNmGcGu5NWX8vPCl5UoY WE5U6oinZOHoGPZRKfLmgAtvsQ6ncTzoFzbjBhVMcK/93HOd/9NtTkHgSgohOMqCmMWD 8RWluwXa9/brkFaEmGBAlTCxLaEJamMS+Y0r/nZl9DT+jUyG5uLt8LBD/cwgGxuHcvel +0cvmci57vhveivocFtiq7XpGj0XMjpUXbP8kiNx8HafERUvf69p9fXGdmib//SLngkP Hfcg== 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=B3xcTA+wkvrIgpyo95I1q6jiSwwgZ6r49IcgTrclRMY=; b=f7fgQxthbQGd/DiTE/2QSjqfDtjuq0yJvaqjeh7lUk7Ay7V+2e0ysX0SuHjEY4FswG zRN9Oy5krCSfKjXTxdt/vX6ZVa5Wdt/O30Og6tqf9CRgWwzFO8REzx/b3ESyL/Ok/t6C nMn8BlE+gBSpHO3VuiBH/N2i9jEjyiIcXLNRxHoFE/GxzK3a30u28NAq4T1uOhlcoVYa inYePy66SJndgdEG5nENOIcD6qLvzm3u0hakiS3Br1/U+fsif5YrDSSU3/MHK2apxFmB SlxNMOx4XwyuUcetztXF8BwAn3lFym1HmT1SgqtyTy3kgJSo++vk1MYuS8nhKG9bWRo7 vwJA== X-Gm-Message-State: AOAM530e7ceu0L20UIEDYPmXhmfc6IjQ1coCm4oVKQSSK/w3V9wVF1yh qZ1gWMOqiS7hs8bxWILaqgOA8iMb22EvZQ== X-Received: by 2002:a17:902:c9d5:b0:153:2161:dff6 with SMTP id q21-20020a170902c9d500b001532161dff6mr4309817pld.95.1646944074698; Thu, 10 Mar 2022 12:27:54 -0800 (PST) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id l9-20020a655609000000b0037589f4337dsm6399938pgs.78.2022.03.10.12.27.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Mar 2022 12:27:54 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 2/3] tcg/s390x: Fix INDEX_op_bitsel_vec vs VSEL Date: Thu, 10 Mar 2022 12:27:50 -0800 Message-Id: <20220310202751.594961-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220310202751.594961-1-richard.henderson@linaro.org> References: <20220310202751.594961-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102e (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102e.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: thuth@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The operands are output in the wrong order: the tcg selector argument is first, whereas the s390x selector argument is last. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/898 Fixes: 9bca986df88 ("tcg/s390x: Implement TCG_TARGET_HAS_bitsel_vec") Signed-off-by: Richard Henderson Tested-by: Thomas Huth --- tcg/s390x/tcg-target.c.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcg/s390x/tcg-target.c.inc b/tcg/s390x/tcg-target.c.inc index 508f1bccc7..3b185b3c96 100644 --- a/tcg/s390x/tcg-target.c.inc +++ b/tcg/s390x/tcg-target.c.inc @@ -2868,7 +2868,7 @@ static void tcg_out_vec_op(TCGContext *s, TCGOpcode opc, break; case INDEX_op_bitsel_vec: - tcg_out_insn(s, VRRe, VSEL, a0, a1, a2, args[3]); + tcg_out_insn(s, VRRe, VSEL, a0, a2, args[3], a1); break; case INDEX_op_cmp_vec: From patchwork Thu Mar 10 20:27:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 550139 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6713:0:0:0:0 with SMTP id u19csp1335570mag; Thu, 10 Mar 2022 12:28:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxsGuuiDTTNHe7S+VOw6m6V8JSEdjj+CILJ1s08Y+Yp2lI3Opi4AGxzcyK9/3iZGzx/w6dt X-Received: by 2002:a25:e750:0:b0:628:983c:f3c4 with SMTP id e77-20020a25e750000000b00628983cf3c4mr5534591ybh.90.1646944136429; Thu, 10 Mar 2022 12:28:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646944136; cv=none; d=google.com; s=arc-20160816; b=hEvf5Uc8BqksQTs66XLqehsCxW9TQB5IcDad/5fznPZdbOZAEDGD/3BBSPK89ChRmK dXe1QHBXK//Hqs4e8Lc//FGTMimj3DD6kRKFeBfBC1MHJPWkpyY6h719K1y2jM8Cutnm 70VT0wgbOJAb0/q2kLO/VZUDI9ira2uz/RpVU9IwxGgQ9izlibhDiHP6C0atcZEs/p25 v7s3oj5Q3gxat08AWsJ4GPftxYtR5ckER3Lt3YcKF7p5jyhRSI2QjyACmMFpm6yAu/BE rKQD63gn7j8Hp2p/L4CiVzxfpLgO2FyaCncUIkyilkgMdG+9FjlwM+899NWpILL2pqYi XxGA== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=DPs3qyT+uZfNbgHJhAl1/at2oy1K0HPub76v6Xk9tE4=; b=CRD5G+vs7vZC0o8B3zhihVWAZqaa3rFXLUQadebTozqeZ+DbfQzjaIUzvWu/udtU/L HdLUZ/QIxI37JW5hjfhwd803dHU9ZCy5/IG956CT4R/RaQocv+mn/1ChJsD7F15pcg/b VvIx9Ai71Nm7pkMbO1urlQ9YOFAV0ZWG0XSCuSfBZB2k9ZZkAiey8wX3FrSjXK+j07w6 OzQ+FKucYZjHud4XuMAWX5jDk7ZlZSBDcLVxmOlF3X26EMMmY1YQpD7Wq5Z1jabQIjf9 ZucI+XMQpvBgacYt86o4mMFC0qKLKh/uyvYrNYBw6i8bQJyNdXgHEs3s13fobujwoFEn r8Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XADrHLso; 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 a17-20020a256611000000b00628d079c3fasi3701948ybc.387.2022.03.10.12.28.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Mar 2022 12:28:56 -0800 (PST) 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=XADrHLso; 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]:32788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSPP5-0008Hm-P2 for patch@linaro.org; Thu, 10 Mar 2022 15:28:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSPOA-0008CR-Gg for qemu-devel@nongnu.org; Thu, 10 Mar 2022 15:27:58 -0500 Received: from [2607:f8b0:4864:20::533] (port=38813 helo=mail-pg1-x533.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSPO9-0008F7-27 for qemu-devel@nongnu.org; Thu, 10 Mar 2022 15:27:58 -0500 Received: by mail-pg1-x533.google.com with SMTP id 132so5669280pga.5 for ; Thu, 10 Mar 2022 12:27:56 -0800 (PST) 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=DPs3qyT+uZfNbgHJhAl1/at2oy1K0HPub76v6Xk9tE4=; b=XADrHLsowmHz98IKHJNxqQqL/8yVgU837I20LdtVu7rGvRbLo5QR4yBT2Akn5phbLz gJcuk+qFT6DiR5gDu1GllUEFmmJwQ5f9VOWwhcyWw4dFbo+Wv2ZWSY2rJjFme9+5exy9 xDcmC3EYG7ETHBTaBSVWI1F7Eyd+eleEVgG9ljTSy2U/e4JCFuUD35S4IkYIuC3B4cMk QhuB3JggC0tS/GFdktIAn9/RouJ3j1QG6KNoCwx7fcreriTMH2PDrP2gCeVWbBfHSBBG /yhmHxXd4dHpLosyTfRhr9asDbcrziQ0CMRBUlzZhm+QnrPwp9x2qMrPA801/z3zBaDx nw/w== 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=DPs3qyT+uZfNbgHJhAl1/at2oy1K0HPub76v6Xk9tE4=; b=DRIm6l3cSNiXmiRQPdK28OAs80FpIGeTIuaPGmgFDU51fEy9XpbspxSZG/0/louJF5 ilExDixQH9aYAwkuu1uXVJvOLfmZztZAfIho9DPPXUsZ7Eb51jpZujej7ujQRWCbd4fA tRyT+F9vICpiue/umzRu4mN0jQlho6IaZvTyQhEHToJ5pFN1LumO77UUnl4XV6RGVoH2 owIWE0XdeBYIup/G9eFdCXAmG9dpma6l+B9CvrKi2VFzaBsqiCIcnZ/LAgsDexpvKzwM CQlQjIV1ffez/s13J9XCrHTo1PV4n/mSWZaibgu0DCs2X0KKjYFCRiPrQRSr6PxlKsaG ZHDQ== X-Gm-Message-State: AOAM5315KAikf7WaKnYKDueZig268zZwk7XqQ+oPmwnjY69CZwkT5HAc UWp4IZ790IWHbbQ8FrQYQjzFEi6IGziDFw== X-Received: by 2002:a05:6a00:ac1:b0:4f1:29e4:b3a1 with SMTP id c1-20020a056a000ac100b004f129e4b3a1mr6822755pfl.63.1646944075789; Thu, 10 Mar 2022 12:27:55 -0800 (PST) Received: from localhost.localdomain (174-21-142-130.tukw.qwest.net. [174.21.142.130]) by smtp.gmail.com with ESMTPSA id l9-20020a655609000000b0037589f4337dsm6399938pgs.78.2022.03.10.12.27.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Mar 2022 12:27:55 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 3/3] tcg/s390x: Fix tcg_out_dup_vec vs general registers Date: Thu, 10 Mar 2022 12:27:51 -0800 Message-Id: <20220310202751.594961-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220310202751.594961-1-richard.henderson@linaro.org> References: <20220310202751.594961-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::533 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::533; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x533.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 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, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: thuth@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We copied the data from the general register input to the vector register output, but have not yet replicated it. We intended to fall through into the vector-vector case, but failed to redirect the input register. This is caught by an assertion failure in tcg_out_insn_VRIc, which diagnosed the incorrect register class. Signed-off-by: Richard Henderson --- tcg/s390x/tcg-target.c.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/tcg/s390x/tcg-target.c.inc b/tcg/s390x/tcg-target.c.inc index 3b185b3c96..33becd7694 100644 --- a/tcg/s390x/tcg-target.c.inc +++ b/tcg/s390x/tcg-target.c.inc @@ -2675,6 +2675,7 @@ static bool tcg_out_dup_vec(TCGContext *s, TCGType type, unsigned vece, if (vece == MO_64) { return true; } + src = dst; } /*