From patchwork Mon May 14 22:12:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 135765 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp191239lji; Mon, 14 May 2018 15:19:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZozEkdRs1J7ocNA95a2K0KXTf4FNSC6Vl4v3/rLbdGA4r8/cpjLpNIicMFUTTTbV7+cxFqM X-Received: by 2002:a37:f4f:: with SMTP id z76-v6mr9668153qkg.373.1526336352814; Mon, 14 May 2018 15:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526336352; cv=none; d=google.com; s=arc-20160816; b=dEwxfZLEG0xDoMSzQyj1yJAhUEmvCvF6MUcAzUdQ/WjY4mfziE6965dE1ZSk9InomI skZgRUop/xGejU59FwqcGw56cJHe5qcFvq4VfZYavaIaW6i8tixj199jMYL0IOjLI9hh 40tUZzhmNrojvxhfDnnZjp2pAHuc75d2hGlYNJkJQeStjXAVCHvn033T12ex9sHREjfq RJi4xYv2A02lby+8MPkJE3Vypc4unTH7YKuJwkvwX5leNmYRH3DYJNWhT4sF2NXGuvDt yqQLVI6YmerqU13kEv2+wuac9W3cJqayZMZh6su+AllYM/STzoJN8tADpu8WaFfnWR3V opVA== 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:arc-authentication-results; bh=Bl+bwYZCboI6Mmo4YIXtqqIxAxnsh+z/MxA7ULhGDVk=; b=eAAc2ozbCfL4uQKxUV9mXN3dVyHW0rTO0rjzsvzpn4qP1Ep3Kbo/o8SSXY006wXGwM 4zbNkAkrDETa7SkCwd3j6T7eAyKSlt9AnTVPaSpoVZUo49mfl9zOBEpv9Gwx6TCmtdST lwKA4co1yTYy34BzeIPT40frAqOFduCDNc964n56LYurdxniP3XhxAtuiPrtZtPXxaCQ PDjSgpaFaobf5H9JAozA243D0OrgzDvGAhe+RpW0TshjW1z/eQ68tAU7v1/lzL3X7Vr5 QQ0+E06nTQNxSdGXFRQ5QrbzMG7IscSYNIqBg+sqbQy2PiBrBdh45Cuaa3FwVBKjMcGj 5lGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ffz+sry5; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 2-v6si3650478qku.200.2018.05.14.15.19.12 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 14 May 2018 15:19:12 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=ffz+sry5; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 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]:49910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fILoG-0004vd-6P for patch@linaro.org; Mon, 14 May 2018 18:19:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fILhs-0007vm-V2 for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fILhr-0007gE-Kx for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:36 -0400 Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:40994) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fILhr-0007eu-FN for qemu-devel@nongnu.org; Mon, 14 May 2018 18:12:35 -0400 Received: by mail-pf0-x241.google.com with SMTP id v63-v6so6663071pfk.8 for ; Mon, 14 May 2018 15:12:35 -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=Bl+bwYZCboI6Mmo4YIXtqqIxAxnsh+z/MxA7ULhGDVk=; b=ffz+sry546DryKyts4jk6x90tJh4u/k6fKql2TTEiUFMK1ToyjhBQD0isvKdFKVoaH eSxRM3jX6tVCl09VzjdNRm+AjkpHwKQ6EyKGC16PnUedBAX+UFCGhofmAEfh5TG6ORd8 wbhV02Qkq9fy++GG/CCDqsbOLKwK0YEJ7ZUn8= 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=Bl+bwYZCboI6Mmo4YIXtqqIxAxnsh+z/MxA7ULhGDVk=; b=lwcOugOi2Y3MZO+sZYvLVR0AiwXogby9nBdvOsv0NMK+2uKS8IN4bKZBNV4NMgMFoh 7C1Sa7hvyhTzz50SWloZBfagf+bANHH+NlN1xFps5mCeg4nuMoyPriJRN0+TIC7tLpHn 0lBeuisKrN+g9A4k0woZYlFNxwDCiIN3iZ+qaExCGZpdiYVLvSiAghPVcc2UwQegJ6jy KtMpdTV7q6V3unJWMujZzIBJfwzyfa6HWzu9jyZgNpXaXMLPw4l+xV8m1qPVYN4/c41B uLv+wIQvSTHU0WGdJFH677N4/7V7yMlpogwPbGkYD+IHFDPovM6M/2eKFEyP6jOlQpaV I1cQ== X-Gm-Message-State: ALKqPwflahAlquAb/j+U3kYp9s0GHgytgRloMeV19fPcX+BNDJ6G+IOV SM3nTejhTbHRcPf9xsQ0byxN0nzc/Q8= X-Received: by 2002:a63:ae42:: with SMTP id e2-v6mr5734302pgp.424.1526335954211; Mon, 14 May 2018 15:12:34 -0700 (PDT) Received: from cloudburst.twiddle.net (97-113-2-170.tukw.qwest.net. [97.113.2.170]) by smtp.gmail.com with ESMTPSA id y2-v6sm14512457pgp.92.2018.05.14.15.12.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 15:12:33 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 14 May 2018 15:12:00 -0700 Message-Id: <20180514221219.7091-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180514221219.7091-1-richard.henderson@linaro.org> References: <20180514221219.7091-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::241 Subject: [Qemu-devel] [PATCH v5 09/28] target/arm: Use floatX_silence_nan when we have already checked for SNaN 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@linaro.org, alex.bennee@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/helper-a64.c | 6 +++--- target/arm/helper.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) -- 2.17.0 Reviewed-by: Alex Bennée diff --git a/target/arm/helper-a64.c b/target/arm/helper-a64.c index 4f8034c513..6f0eb83661 100644 --- a/target/arm/helper-a64.c +++ b/target/arm/helper-a64.c @@ -376,7 +376,7 @@ float16 HELPER(frecpx_f16)(float16 a, void *fpstp) float16 nan = a; if (float16_is_signaling_nan(a, fpst)) { float_raise(float_flag_invalid, fpst); - nan = float16_maybe_silence_nan(a, fpst); + nan = float16_silence_nan(a, fpst); } if (fpst->default_nan_mode) { nan = float16_default_nan(fpst); @@ -405,7 +405,7 @@ float32 HELPER(frecpx_f32)(float32 a, void *fpstp) float32 nan = a; if (float32_is_signaling_nan(a, fpst)) { float_raise(float_flag_invalid, fpst); - nan = float32_maybe_silence_nan(a, fpst); + nan = float32_silence_nan(a, fpst); } if (fpst->default_nan_mode) { nan = float32_default_nan(fpst); @@ -434,7 +434,7 @@ float64 HELPER(frecpx_f64)(float64 a, void *fpstp) float64 nan = a; if (float64_is_signaling_nan(a, fpst)) { float_raise(float_flag_invalid, fpst); - nan = float64_maybe_silence_nan(a, fpst); + nan = float64_silence_nan(a, fpst); } if (fpst->default_nan_mode) { nan = float64_default_nan(fpst); diff --git a/target/arm/helper.c b/target/arm/helper.c index c6fd7f9479..3df5cf30e4 100644 --- a/target/arm/helper.c +++ b/target/arm/helper.c @@ -11739,7 +11739,7 @@ float16 HELPER(recpe_f16)(float16 input, void *fpstp) float16 nan = f16; if (float16_is_signaling_nan(f16, fpst)) { float_raise(float_flag_invalid, fpst); - nan = float16_maybe_silence_nan(f16, fpst); + nan = float16_silence_nan(f16, fpst); } if (fpst->default_nan_mode) { nan = float16_default_nan(fpst); @@ -11787,7 +11787,7 @@ float32 HELPER(recpe_f32)(float32 input, void *fpstp) float32 nan = f32; if (float32_is_signaling_nan(f32, fpst)) { float_raise(float_flag_invalid, fpst); - nan = float32_maybe_silence_nan(f32, fpst); + nan = float32_silence_nan(f32, fpst); } if (fpst->default_nan_mode) { nan = float32_default_nan(fpst); @@ -11835,7 +11835,7 @@ float64 HELPER(recpe_f64)(float64 input, void *fpstp) float64 nan = f64; if (float64_is_signaling_nan(f64, fpst)) { float_raise(float_flag_invalid, fpst); - nan = float64_maybe_silence_nan(f64, fpst); + nan = float64_silence_nan(f64, fpst); } if (fpst->default_nan_mode) { nan = float64_default_nan(fpst); @@ -11934,7 +11934,7 @@ float16 HELPER(rsqrte_f16)(float16 input, void *fpstp) float16 nan = f16; if (float16_is_signaling_nan(f16, s)) { float_raise(float_flag_invalid, s); - nan = float16_maybe_silence_nan(f16, s); + nan = float16_silence_nan(f16, s); } if (s->default_nan_mode) { nan = float16_default_nan(s); @@ -11978,7 +11978,7 @@ float32 HELPER(rsqrte_f32)(float32 input, void *fpstp) float32 nan = f32; if (float32_is_signaling_nan(f32, s)) { float_raise(float_flag_invalid, s); - nan = float32_maybe_silence_nan(f32, s); + nan = float32_silence_nan(f32, s); } if (s->default_nan_mode) { nan = float32_default_nan(s); @@ -12021,7 +12021,7 @@ float64 HELPER(rsqrte_f64)(float64 input, void *fpstp) float64 nan = f64; if (float64_is_signaling_nan(f64, s)) { float_raise(float_flag_invalid, s); - nan = float64_maybe_silence_nan(f64, s); + nan = float64_silence_nan(f64, s); } if (s->default_nan_mode) { nan = float64_default_nan(s);