From patchwork Wed Sep 4 20:45:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 173067 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp452663ilq; Wed, 4 Sep 2019 14:20:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzGbPazEmKcO6dGPq7/PQqV4zHtEnyw3DryMEGdoW01q6tYqKK26+vyfjTRYulseGTf3HPn X-Received: by 2002:a50:d70c:: with SMTP id t12mr380649edi.172.1567632045396; Wed, 04 Sep 2019 14:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567632045; cv=none; d=google.com; s=arc-20160816; b=Vi/T16iKDz1oY3eKCBMfRJlidldb0CY8cBNAkhtLIAjdVtmY/LHecRprajT+WLHLmk GNqmF2GZusR6h0/4FGX3ZtxSMMNngIh0gGNk3HsXtl8NMr5wB7M6ksJ6AvPPKXNfiFU5 wvoajWvQrqbSO6MBdpNJ+qoqoyfEfwYVUI5zNfWgP4+qqx5FNbA3YIA3rqEklDGxBbie vh9euO0IkJ8/ffMCououGMrmO1xujRYJ/eFmuMNdZpZxXXf+01EA30KGKY6kO6jPMMbH C0U/wklRp4wlzQCgT3nfTbkp8Zb/vFwHx32KE6k6+igbJXcUec3aeKeZgR2+i+TTvn0u a7LQ== 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=DCUh3pxo77uhgP+ZJoHLASbE9LI4j7qaNhsFo5dJ8X8=; b=nfUmbibZPlfh0RqyUHa9jIGvz2p3JiLhC+UVysau/78ZznymhmqBiFBgyKvYhiV31Y rsgUZvIaOP9Vui/SN3ngryD6rNlvef0qf5lI4SsUWcIPO1snlUUUvs/8ZdXnWjp/utN8 nxz4ilTOWs74UnxUcx5U3Upv262kRV+mEGYEHHBFNoiM+nCixj8/YYBUljiFALErRRV2 n8Z7TCWy5vUgL7fZPjang4dFR5frgOr2QO8I8MB34hWoo+ipWTK41jzUGj+m/kn+/6dY lUiDQBY0xKCygfnPw9UJUwRnf2f+5YTwMR3DeMbMq2irz8x1QxsWI6yY4z3F0s89bgVZ rBSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=X2bi62r7; 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 n20si7041977edn.306.2019.09.04.14.20.45 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Sep 2019 14:20:45 -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=X2bi62r7; 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]:40062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5chn-0001OQ-SL for patch@linaro.org; Wed, 04 Sep 2019 17:20:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52844) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5c9Y-0006Av-MD for qemu-devel@nongnu.org; Wed, 04 Sep 2019 16:45:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5c9X-0006li-C4 for qemu-devel@nongnu.org; Wed, 04 Sep 2019 16:45:20 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:46604) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5c9X-0006lF-3l for qemu-devel@nongnu.org; Wed, 04 Sep 2019 16:45:19 -0400 Received: by mail-pl1-x633.google.com with SMTP id t1so71297plq.13 for ; Wed, 04 Sep 2019 13:45:19 -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=DCUh3pxo77uhgP+ZJoHLASbE9LI4j7qaNhsFo5dJ8X8=; b=X2bi62r7E6W+ANGD6dXapnAAlHBs1N3/il/xLnEE7kwqaqLsgvdMHhI2V1TnDsM9ch Gaz9tPsxLcbwTnHCZ40PstdFNm7Xcer9TwuSq/UAaZmbLXOM+Y2wKxaULda82NniwX3J qKsVxJROJUlSrkl+Uca9oK/RPc5d4U/u9TyzA9rN/LEfMVoWRA3IIwG29DYGnRbcdtcd ZWnSlctUGaRdwj4vNgjEy2VnQL99SbYwBBbvotgGzbseMv/9ZvIvBbC6UvxEl9zdPOCq Rjh3RyW84hJ2Fc5Tr0Ylhs0wSdGOMFHZeAS9GalIvjXSMsi7Rbv9fz+3yQSUWegjROaq 9vHw== 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=DCUh3pxo77uhgP+ZJoHLASbE9LI4j7qaNhsFo5dJ8X8=; b=ghMnbdi0RMyMqytOgqdXpAn162jqyj3tjU21KMajXIG3P/sX/Gz8WowsVCxyW3g5n6 CNObnsrOu7zX1qpAKSbs4Jy+3wiBWI+ypJijAv909BQMWFlcT5Scol12gAhpavbKMK9V TQg/ul5yvAUViur9t0OYY+zzaHxmA/hyYgc6YjcZ20dTvgjNIsBXEFbK4pDxi5lQkOq5 9RfdKF4PrkUg7VZ1Bp+DVO9lYWuBwp1Yc1nuXV7Rd46jKofxSnhcZYLyZcF/7lmhTlpG nHTe6VAFAsVfhaW5qI7lYz/JrmUok/seFYxEcXt9bKQAHznRJDXHs/+nxSWekzRDu9GL jsJg== X-Gm-Message-State: APjAAAX0ud7aSvVk4rw8Ou2Vmyy8uZZOFZyhe3Z5+lAK3vhD5xY4OrjV hPppApSW4jc15TCD2E1mKHi87eOqiRI= X-Received: by 2002:a17:902:44c:: with SMTP id 70mr41774517ple.225.1567629917984; Wed, 04 Sep 2019 13:45:17 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id n66sm8104610pfn.90.2019.09.04.13.45.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 13:45:17 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 4 Sep 2019 13:45:01 -0700 Message-Id: <20190904204507.32457-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190904204507.32457-1-richard.henderson@linaro.org> References: <20190904204507.32457-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::633 Subject: [Qemu-devel] [PULL 07/13] target/openrisc: Fix lf.ftoi.s 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" The specification of this insn is round-to-zero. Reviewed-by: Stafford Horne Signed-off-by: Richard Henderson --- target/openrisc/fpu_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/target/openrisc/fpu_helper.c b/target/openrisc/fpu_helper.c index b9d2ebbb8c..4cc5b297c5 100644 --- a/target/openrisc/fpu_helper.c +++ b/target/openrisc/fpu_helper.c @@ -78,7 +78,7 @@ uint64_t HELPER(ftoid)(CPUOpenRISCState *env, uint64_t val) uint32_t HELPER(ftois)(CPUOpenRISCState *env, uint32_t val) { - return float32_to_int32(val, &env->fp_status); + return float32_to_int32_round_to_zero(val, &env->fp_status); } #define FLOAT_CALC(name) \