From patchwork Sat Aug 22 05:40:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 248142 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp942911ils; Fri, 21 Aug 2020 22:53:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5AoIqJCQSXU8bGx50EgtfLBgrOzuSAO+a5VRj9WMDuWMWcSHnm5VVxxfLXa14DgQi9m/G X-Received: by 2002:a25:ae43:: with SMTP id g3mr8428356ybe.459.1598075600726; Fri, 21 Aug 2020 22:53:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598075600; cv=none; d=google.com; s=arc-20160816; b=bbapBU+lB9kSDEzSkY2U+gNKt/KyNgFDkzakdp0nH+Gll3TnsvrgYmTQZBfm7X9z7d EHeNnqFOr/i1QR9j/rc/cRiOiItlfuAjRxBVdEWjAVGA1rhmaSiS8hWpa1iYxtz8DdQX /8yxgnww2pmFkSjNF1NgQ4hS1mGrU4KAk8O08UXrY4Ui6bEfN0UvsMD9cArQBZjnR04y iBJuHFoKfJuhgHI1uiEvLABfiasFapatBNhQbxn8I/uYGxtXc4tibdm3vXPP+x+ZlDQb l3IP6rzY9cHlN4oq7I9DuhSWkCOOxT5Ll6GQZLR5CUW9ndwTa9tP6P4FYeOXgAenOQd4 uZkg== 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 :wdcironportexception:ironport-sdr:ironport-sdr:ironport-sdr :dkim-signature; bh=r7eTwJR9kuw0jUk+7t5cxfKawU46fdeKANZvYVejs2k=; b=k1qSWnh1b2fZOy7guJTM7tgf1aJxvVPpRBOVHqz33BDndjDWJlQLVBNTlapD2Ou9VM fklIJBGcgQQEftRK1ccO/q1rlOV5ygvi0sRKXj7J0N7xLdfBBgfR3a68fRUArMvpDBiy MSQS7cyZw90OMAnKvJbgFENcTH0WTCyuaVHyO5eByqwOafZTTTCNHdym6IoHJK+x9cmN XciB0BekngFDl825bUyDCI2xzYBKRNDQ3XGK+4yRYJxCMAWaBXnxYo8TDYGp6olJS12Q Mi48+L2xYNdYNEtoKnrkMh/Tgu9N7jEqifu8nN1Gl1QrT4E8iGMctdIzSa/mu41hAbwp 71tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=fwY9H120; 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=wdc.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m77si4849728ybm.486.2020.08.21.22.53.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Aug 2020 22:53:20 -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=@wdc.com header.s=dkim.wdc.com header.b=fwY9H120; 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=wdc.com Received: from localhost ([::1]:52114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9MSu-00054L-6k for patch@linaro.org; Sat, 22 Aug 2020 01:53:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9MR4-0001pb-7J for qemu-devel@nongnu.org; Sat, 22 Aug 2020 01:51:26 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:23553) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9MR1-0000Ci-5w for qemu-devel@nongnu.org; Sat, 22 Aug 2020 01:51:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1598075482; x=1629611482; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=w0VVDKkzsYUATBIteFJpXDlRNtdfq0Ead933D9XeTY4=; b=fwY9H120STqXa9Ux9XCNb/tdDSbWH21A+wTFIAdyQPwGrDTp9lC8HlRi 5I9B7Pa8ZJjC4GcQrrfwuevi3QiaUY9Al2opjALYR+lonR3tiDFSa+KvI 5v+DqVQOTw9E75hBdj4l79Ssh1zG01jAuoZz3i6uJpnQ5oQeNISx8u5/2 Sa50NOxGqtTtw95a0F9g2iH3y/y7Q4ssJcFFqvZI1mCKBthdkh8kmZEbF /Wd6zyr+iPKkB3QYjsd2/aLnrwD5vCWHvw9MHIruieaCB1kGxQHBGwAkZ kD9faZgj3WOnCQYyES+b50QdmKCwwFbuyiTFQPbq+UnbXNuezSTw84MdA w==; IronPort-SDR: vvXOBNIBRN8/1AJFJihFGB/+dDkvat1Ur2ag1AjRDVKqa34EIFpgQ7LqCNClBB04HgUjgAMQk/ jVGkwrkGrm5F+19KZ+uPV7cGfs29AQII5iT2ojHWuUNLpZpvC6APwun09lhXIoPMm4UQBtK2ia 46QNbXawIobBMhjJZp/lO7o4J3zms3bA5tXTOyoNV9iCKqrKofXjReZ7cfaZ3TKb2D7c8mqMAV csguJLpjGlXtUum54Z9wLKEr0CGOhGHnqIkaCoQPQw4jyGcp9fEdo6xZnQGVUPiYQ5iZNMMZRE 8aI= X-IronPort-AV: E=Sophos;i="5.76,339,1592841600"; d="scan'208";a="255030530" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 22 Aug 2020 13:51:16 +0800 IronPort-SDR: ng5baJlTKeVsnB+bYjQzcqjwBMYxi7Eo0YLmWsfNi7eSjDQOo9iVY2G3BjzknV5dqTIywYOKvs 16z5be4F947w== Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2020 22:38:56 -0700 IronPort-SDR: krcQR3O1UfmrI4aiZPUg91yQ+aWh8DjVVzsPcpnE0AtYaBivm5cFEb5wP6G2qDg/jTopnrF2Wg kpY+QxhJzsmA== WDCIronportException: Internal Received: from 5zn13g2.ad.shared (HELO risc6-mainframe.hgst.com) ([10.86.59.90]) by uls-op-cesaip02.wdc.com with ESMTP; 21 Aug 2020 22:51:17 -0700 From: Alistair Francis To: qemu-devel@nongnu.org Subject: [PULL v3 03/20] target/riscv: Generate nanboxed results from trans_rvf.inc.c Date: Fri, 21 Aug 2020 22:40:44 -0700 Message-Id: <20200822054101.1202175-4-alistair.francis@wdc.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200822054101.1202175-1-alistair.francis@wdc.com> References: <20200822054101.1202175-1-alistair.francis@wdc.com> MIME-Version: 1.0 Received-SPF: pass client-ip=68.232.141.245; envelope-from=prvs=49637c5a7=alistair.francis@wdc.com; helo=esa1.hgst.iphmx.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/22 01:51:16 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: alistair23@gmail.com, Richard Henderson , alistair.francis@wdc.com, LIU Zhiwei Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Richard Henderson Make sure that all results from inline single-precision scalar operations are properly nan-boxed to 64-bits. Signed-off-by: Richard Henderson Reviewed-by: LIU Zhiwei Message-Id: <20200724002807.441147-4-richard.henderson@linaro.org> Signed-off-by: Alistair Francis --- target/riscv/insn_trans/trans_rvf.c.inc | 4 ++++ 1 file changed, 4 insertions(+) -- 2.28.0 diff --git a/target/riscv/insn_trans/trans_rvf.c.inc b/target/riscv/insn_trans/trans_rvf.c.inc index c7057482e8..264d3139f1 100644 --- a/target/riscv/insn_trans/trans_rvf.c.inc +++ b/target/riscv/insn_trans/trans_rvf.c.inc @@ -167,6 +167,7 @@ static bool trans_fsgnj_s(DisasContext *ctx, arg_fsgnj_s *a) tcg_gen_deposit_i64(cpu_fpr[a->rd], cpu_fpr[a->rs2], cpu_fpr[a->rs1], 0, 31); } + gen_nanbox_s(cpu_fpr[a->rd], cpu_fpr[a->rd]); mark_fs_dirty(ctx); return true; } @@ -183,6 +184,7 @@ static bool trans_fsgnjn_s(DisasContext *ctx, arg_fsgnjn_s *a) tcg_gen_deposit_i64(cpu_fpr[a->rd], t0, cpu_fpr[a->rs1], 0, 31); tcg_temp_free_i64(t0); } + gen_nanbox_s(cpu_fpr[a->rd], cpu_fpr[a->rd]); mark_fs_dirty(ctx); return true; } @@ -199,6 +201,7 @@ static bool trans_fsgnjx_s(DisasContext *ctx, arg_fsgnjx_s *a) tcg_gen_xor_i64(cpu_fpr[a->rd], cpu_fpr[a->rs1], t0); tcg_temp_free_i64(t0); } + gen_nanbox_s(cpu_fpr[a->rd], cpu_fpr[a->rd]); mark_fs_dirty(ctx); return true; } @@ -369,6 +372,7 @@ static bool trans_fmv_w_x(DisasContext *ctx, arg_fmv_w_x *a) #else tcg_gen_extu_i32_i64(cpu_fpr[a->rd], t0); #endif + gen_nanbox_s(cpu_fpr[a->rd], cpu_fpr[a->rd]); mark_fs_dirty(ctx); tcg_temp_free(t0);