From patchwork Mon Apr 1 20:58:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Roth X-Patchwork-Id: 161572 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp940406jan; Mon, 1 Apr 2019 14:06:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdLFAhKEV6f7oSOFBO6PcES99e16ctTfpNQO1SpVDcY4WBufd6C578oKcXGilL55job83c X-Received: by 2002:a81:6f89:: with SMTP id k131mr44677743ywc.36.1554152802212; Mon, 01 Apr 2019 14:06:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554152802; cv=none; d=google.com; s=arc-20160816; b=sLhUWySVQy/TnFgYDMJMBQSIhrqW4K1Nqd7gUYPoYGPpHmSlOOM0MYpF3PdbJOPNp9 lDpChm5SPqCL6I2hXRGRC9pBJhmQzkA5Y0yytc0geZhFuTsACoW+wq4AmuAmp34rd0Kb FdYAtDeEmVZxJFC7IfxdbZEyD1B3OI83RVE5BgjnIT4+IkKkLZhLeaUkotYw8S1lfybf xRIzMEd6+fS9cp5KsIr4CGN4cRKF09i3OUMouguIeJIN2LLPA7B97R1wwM5MqphIsL85 ZS2L91vs3fZXaPjJ+2dOkBnMFVOcblpf1WjZg7W9w4th51D6F/2rCWtjmCGyQDxGO4j+ SchA== 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:message-id:references :in-reply-to:date:to:from; bh=d5dRsvgz/LtnYblCCfgz6OXr84Vl8w4zko4iEwQg7Lc=; b=k3fvo+MI+C89KlJfMq9SR4W6LRdFEJTCYvW1fHOtTMp2prZ0stL/gBjGvSpgUV93aE PNAooEbafUYzwWSex2C3yMbKADVkc3zN5NtNFC6PZ+fCmlfFhwwiUB89ofUhDi621JZg rGJwb3bCUOHnJ999wMh24njNC22SmfLYB/U+jCz1WFJOpM6bnYdRZH/MW3JPcWi/Q01s fOLomo3NxNjYqinTYpBfyjmNBFCciPLGD6M0SNsCYWtC5JRgXW0+bWyYFeM4GLvOjZND xBmm+XxWt0of21bP76F0fjfFNoNvhceEaLd/F/rYFQRTWt0J/fmH/aCxTYaM4/W2aG/O o6SA== ARC-Authentication-Results: i=1; mx.google.com; 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=ibm.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id j186si6700134ywa.432.2019.04.01.14.06.42 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 01 Apr 2019 14:06:42 -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; 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=ibm.com Received: from localhost ([127.0.0.1]:38652 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hB48f-0004sa-KL for patch@linaro.org; Mon, 01 Apr 2019 17:06:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hB43z-0000qu-V4 for qemu-devel@nongnu.org; Mon, 01 Apr 2019 17:01:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hB43y-00036s-Lg for qemu-devel@nongnu.org; Mon, 01 Apr 2019 17:01:51 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:45460) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hB43y-00035n-4S for qemu-devel@nongnu.org; Mon, 01 Apr 2019 17:01:50 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x31KrcI4128195 for ; Mon, 1 Apr 2019 17:01:48 -0400 Received: from e14.ny.us.ibm.com (e14.ny.us.ibm.com [129.33.205.204]) by mx0a-001b2d01.pphosted.com with ESMTP id 2rkq85hr1p-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 01 Apr 2019 17:01:47 -0400 Received: from localhost by e14.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 1 Apr 2019 22:01:45 +0100 Received: from b01cxnp22033.gho.pok.ibm.com (9.57.198.23) by e14.ny.us.ibm.com (146.89.104.201) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 1 Apr 2019 22:01:42 +0100 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x31L1f2S20774972 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 1 Apr 2019 21:01:41 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 46198AE068; Mon, 1 Apr 2019 21:01:41 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1DF18AE063; Mon, 1 Apr 2019 21:01:41 +0000 (GMT) Received: from localhost (unknown [9.80.94.43]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTP; Mon, 1 Apr 2019 21:01:41 +0000 (GMT) From: Michael Roth To: qemu-devel@nongnu.org Date: Mon, 1 Apr 2019 15:58:50 -0500 X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190401210011.16009-1-mdroth@linux.vnet.ibm.com> References: <20190401210011.16009-1-mdroth@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 19040121-0052-0000-0000-000003A61B20 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010857; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000283; SDB=6.01182941; UDB=6.00619269; IPR=6.00963683; MB=3.00026249; MTD=3.00000008; XFM=3.00000015; UTC=2019-04-01 21:01:44 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19040121-0053-0000-0000-000060599393 Message-Id: <20190401210011.16009-17-mdroth@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-04-01_06:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=915 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904010135 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 148.163.156.1 Subject: [Qemu-devel] [PATCH 16/97] target/arm: Use FZ not FZ16 for SVE FCVT single-half and double-half X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Richard Henderson , qemu-stable@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson We were using the wrong flush-to-zero bit for the non-half input. Fixes: 46d33d1e3c9 Cc: qemu-stable@nongnu.org (3.0.1) Reported-by: Laurent Desnogues Signed-off-by: Richard Henderson Reviewed-by: Laurent Desnogues Tested-by: Laurent Desnogues Message-id: 20180810193129.1556-5-richard.henderson@linaro.org Signed-off-by: Peter Maydell (cherry picked from commit e4ab5124a5c2e2291006b24bdc21c3dd8d087ff4) Signed-off-by: Michael Roth --- target/arm/translate-sve.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index d27bc8c946..667879564f 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -4093,7 +4093,7 @@ static bool do_zpz_ptr(DisasContext *s, int rd, int rn, int pg, static bool trans_FCVT_sh(DisasContext *s, arg_rpr_esz *a, uint32_t insn) { - return do_zpz_ptr(s, a->rd, a->rn, a->pg, true, gen_helper_sve_fcvt_sh); + return do_zpz_ptr(s, a->rd, a->rn, a->pg, false, gen_helper_sve_fcvt_sh); } static bool trans_FCVT_hs(DisasContext *s, arg_rpr_esz *a, uint32_t insn) @@ -4103,7 +4103,7 @@ static bool trans_FCVT_hs(DisasContext *s, arg_rpr_esz *a, uint32_t insn) static bool trans_FCVT_dh(DisasContext *s, arg_rpr_esz *a, uint32_t insn) { - return do_zpz_ptr(s, a->rd, a->rn, a->pg, true, gen_helper_sve_fcvt_dh); + return do_zpz_ptr(s, a->rd, a->rn, a->pg, false, gen_helper_sve_fcvt_dh); } static bool trans_FCVT_hd(DisasContext *s, arg_rpr_esz *a, uint32_t insn)