From patchwork Mon Aug 31 16:04:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 248754 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp3441983ilg; Mon, 31 Aug 2020 09:08:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUq34j9mCZnc4n9Fx+crXJMPY1eAfyDkXMnKRxWZulc9nSHwUFvwXiwW7m/vIyTxOBgPCI X-Received: by 2002:a25:c2c5:: with SMTP id s188mr3330812ybf.245.1598890114138; Mon, 31 Aug 2020 09:08:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598890114; cv=none; d=google.com; s=arc-20160816; b=SkGN+L8iU/83orJQ2vbmIlhV6HYP74hpmoaHscjk+ivJbd2nC8HktsVjzpteM9OlIN SNI7BltHfUjFNYkt83Mh+R86GROkRcyQ4FzevyqrIiZYml8nyGP1VXC6WtRVpvxXBF+5 1FGnT4l6Wncst6Db9WBEu/TiX/cwKk2ygDzDxUdkJZu8q8Immlx2vUeAhmOkVuN8PbAG XinFXnrb7XCPNddfCxHI2aFOrkZiZs7YfG78rHaAhu0Q13iwXwfOfASN4lfL6txh6ZlV anM17hQYFXzI6PNc7vFudXZSK7UE5DtmPy4m2JHPDTeXN7vPsHFYCKyhhpReU3FPSC6n lEZg== 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=unhCEa+c++7uk9+yQ2XBvkX8JjrsH/tZ97/HnRS/zo4=; b=Oe0Z5DTrG6VX68urQIswPPDjx+7cjoY90PnciqRN6C8B2yGZrBpJbZwpF1Qj75lAaH oInOfndpB/lheOxa1facelW/yavWz9giCaLuBlL7V/EBHrKY0hoSqbwsMP4gU1WRlDWx bOEzGsq+Yy6T6LW1/MqmuhbacVN8NMwjxOl7KsrxqVEixn89e+k0Rp32Zzcfff58wrpI qv0nnQ4AmjZMCYKtsIF+AGvJAEQBmDd/DvzJqExXE43PObQESwQAxQWHU0PCg15Lgzgu t0OBoIbtWoWByAVA5ZQzdfIoM+ofATBEL+8Uhu8Vi2a1D4uz9p97WeOx9TPW7iQ2h5jl KsRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=C9aKhV9z; 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 o80si6892562ybc.69.2020.08.31.09.08.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 31 Aug 2020 09:08:34 -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=C9aKhV9z; 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]:58790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kCmMD-0006xO-Jt for patch@linaro.org; Mon, 31 Aug 2020 12:08:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kCmJx-0003Q0-P5 for qemu-devel@nongnu.org; Mon, 31 Aug 2020 12:06:13 -0400 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:35753) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kCmJu-0005tw-C0 for qemu-devel@nongnu.org; Mon, 31 Aug 2020 12:06:13 -0400 Received: by mail-pg1-x52b.google.com with SMTP id g29so841030pgl.2 for ; Mon, 31 Aug 2020 09:06:09 -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 :mime-version:content-transfer-encoding; bh=unhCEa+c++7uk9+yQ2XBvkX8JjrsH/tZ97/HnRS/zo4=; b=C9aKhV9zcNFwgMhf9cj1IdJ6dZpAscIBprz8wWvT4iq1HxyeIhWeoE2VtqQrvMtQR0 0WwEXOWTUMLxTzWhS/zD+9pgo1PsD8xPooFp2LRoM6TBg9sOhfJtvCBaBgOrpL1jU+Cr mydkkEKeZAbg0CpprObEX7u3HyADIbQZIrTUza6MyZh+vHUSJmETbF/KMEUypwqgoIHL iullAOCQ5GgQa66sHqU6qbQ4AwyfO2BLYdPAcwROSoleU8BptHLBcEWuKzTSPtWxlx5X ZH2TdRASkkZeygNNUChr2uRX3zpZPnbTCOJg7xWCvcS0rs+PYeqBssJ2UHR749aTAjZi A5yw== 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:mime-version:content-transfer-encoding; bh=unhCEa+c++7uk9+yQ2XBvkX8JjrsH/tZ97/HnRS/zo4=; b=JIb+WNNxvKgkUl42KfJOtWz/tPQBiolD/47Ex4BIbY+GxOKHnzzKCVwIc5nGV4f9ji 8pGsanQegVnbW8a6w0uRozhKm39xUfIuBOuGGb8Mxdq0e/XjO/py9AhXLRzgOJWTmNJs Fh7jF9SrQc8/CrchdqfYVJUHNF+tkFXyRM6QvganREbh531jhp4KvkYjtQz1N7ySy0vN 14z2wUXGnNdAn7qSatuQHp9uiubZVMcOHbpVxSIYLc5hJR92ZrfL3PN0JfMBKhyv+C5V 2Dyo/9o+f77gvTWUCKfQBLbqzuF6iUC0EHXNM/AlzQ5bedoNL4X6fzFggq3yrAJywx0/ zxvQ== X-Gm-Message-State: AOAM532uGYIiA7eVDa7z4rO4R4EoaApZSiNFK9oihSddzRLwXaL0+3HU mhi9aUbeAUgJukw3s6UUmvkUGwSpfQLWTw== X-Received: by 2002:a63:5c1a:: with SMTP id q26mr1788510pgb.223.1598889968668; Mon, 31 Aug 2020 09:06:08 -0700 (PDT) Received: from localhost.localdomain ([71.212.141.89]) by smtp.gmail.com with ESMTPSA id gt13sm17218pjb.43.2020.08.31.09.06.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2020 09:06:07 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 03/76] tests/tcg: Do not require FE_* exception bits Date: Mon, 31 Aug 2020 09:04:48 -0700 Message-Id: <20200831160601.833692-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200831160601.833692-1-richard.henderson@linaro.org> References: <20200831160601.833692-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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: "Edgar E . Iglesias" , peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Define anything that is missing as 0, so that flags & FE_FOO is false for any missing FOO. Tested-by: Edgar E. Iglesias Reviewed-by: Edgar E. Iglesias Signed-off-by: Richard Henderson --- tests/tcg/multiarch/float_helpers.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.25.1 diff --git a/tests/tcg/multiarch/float_helpers.h b/tests/tcg/multiarch/float_helpers.h index 6337bc66c1..309f3f4bf1 100644 --- a/tests/tcg/multiarch/float_helpers.h +++ b/tests/tcg/multiarch/float_helpers.h @@ -8,6 +8,23 @@ #include +/* Some hosts do not have support for all of these; not required by ISO C. */ +#ifndef FE_OVERFLOW +#define FE_OVERFLOW 0 +#endif +#ifndef FE_UNDERFLOW +#define FE_UNDERFLOW 0 +#endif +#ifndef FE_DIVBYZERO +#define FE_DIVBYZERO 0 +#endif +#ifndef FE_INEXACT +#define FE_INEXACT 0 +#endif +#ifndef FE_INVALID +#define FE_INVALID 0 +#endif + /* Number of constants in each table */ int get_num_f16(void); int get_num_f32(void);