From patchwork Tue Aug 25 20:58:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 248262 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp3764401ils; Tue, 25 Aug 2020 14:01:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMm94rWHJjTFY05dLnt8OG+zKjVFyml01LVzAlTj3oK7CFqa8nd7MMq1Gdwhf+hwAEjmxq X-Received: by 2002:a05:620a:134b:: with SMTP id c11mr9167112qkl.256.1598389269963; Tue, 25 Aug 2020 14:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598389269; cv=none; d=google.com; s=arc-20160816; b=H5wW55BHU7W8FNw6ryxSaaxhu58qKQqPOHvJrUFzsyxXVHp8H+Ejy8iaARfUxNC0Zw 8rTeMiJZAqkrlQBOsvs2lnRVLBPKb2YuivzhwtIoj2j4orXTp8/w0hZApEGStp0lWi7o HYjAAbTW+3wE8pk2tGLMKdnF9bz5vj8W/YqFQyQf7x4bfMwyOMdPvFASgESZbGcCean2 Q4VMjPw5nTS3qdZnYOuCx2E2cIz/orxzeY1nNZGQl9yUl6r8fwbX9nNysN2mSslhxfMV wV8yLEivULevAm6nOXIcFSV+S24Tio1rWsYqXgsy8XszC8Ruf+/Z4OIYe3XvbURCyeW5 XJ4A== 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=rxIBmswNh0tIGuyehJwJsuO5I+nId1kc+WGKDH86wIY=; b=rwBLYg/rG6s8VGucjLo6olnYvDUbFLjZC330BcY7/dEUk0LHczeA+gufD2CVHvmQL3 qLmpyAdvowIxdcuW+tJqdCKp4y+AE3IOQqVFzPYKodeoO/7LGotId40huWF5AStF67nX CA1Nshs1N4psn4IbIolCkmdgCejW/nWU+wY0ub3csk1l3WTTCtuKmJSMMoBa5UnqVmL0 dDQ2VrG3KRH8+CIihE+iNnk7kAM7cgvohgZss0vTa3WRlm7tUmLao4sHY1c0O12Cgg7E 6eV5s+pddX7jV1iDzWfDskfmfZS1Flyjwo2De9YFZiaSEJ/8uM3PWyrZ/x+YNRDN3cBG GmzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LOtU6s9l; 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=pass (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 c25si161976qtv.276.2020.08.25.14.01.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Aug 2020 14:01:09 -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=pass header.i=@linaro.org header.s=google header.b=LOtU6s9l; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:41226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAg45-0006u8-9w for patch@linaro.org; Tue, 25 Aug 2020 17:01:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAg2x-0006su-SQ for qemu-devel@nongnu.org; Tue, 25 Aug 2020 16:59:59 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:32848) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAg2w-0001cL-A5 for qemu-devel@nongnu.org; Tue, 25 Aug 2020 16:59:59 -0400 Received: by mail-pf1-x444.google.com with SMTP id u20so8300628pfn.0 for ; Tue, 25 Aug 2020 13:59:57 -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=rxIBmswNh0tIGuyehJwJsuO5I+nId1kc+WGKDH86wIY=; b=LOtU6s9lu5shExjw41c6rKHbfdwBkDJ/k+j+0RQIcHhLeYVUoXPF5sIdGkhQoIc/CS 699txRbQ5YelkbCWPLH9owdGI/EyjIV+tTyqJ4n5b2VsG4W89LkB2EVd3cJnK1IoqVLP LRhBldZAdnh+QRk6oPkDpJAAYiAjrlkNGr+txgNijgHurdtdiHW7vOzXvhvyMP6UeRjW vgHAHxxtdBCvX3bLMuwVLU8s+r8VcNjohcx2opMf1ettKy+ltx1jXVe4LBO7Ty5JT9xI wr0YcU/t261FWKZumjvinaHTHUJQog4swpZ8JQ0CIPoIh/zRwPNdVvoApkz9kvoIhrpS utqQ== 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=rxIBmswNh0tIGuyehJwJsuO5I+nId1kc+WGKDH86wIY=; b=XVD+46/OUdyXexX/Mn53c/JxhQs4PtgM9qKIV/3uMmB8FTggUJyQtWukBbflXooioc bNNXRwjxRsa0UzzrRUxJtoE+xOmZQXg8rWEWPg0SqK1BZ+jGE7zVZOMAy0zSSagbt/Wt wcJXGb1bDddfnksLbYqEIkBwotdV+18ZIjkSi9BjV9nG1LdC9rFa8Od9ERShZHap6gp4 SJyANWcrxXoHSYsER89Jijp0ZUO2uuFi4Oc9Ziogcn9R6Fn1BZbFvJMETlwaj5aZFZVn egFEBYHznE0qi5hWDB1baSOWtFeMBvvvecHgtGMDmdqoFQDmXve51eoEOMVd5PdyryWQ jA6A== X-Gm-Message-State: AOAM533AZBUB3x2hpz/TOyzztck/sp/Y1CWIvhFaXhINcG0q09VjHqnU OmS124e4CEQFnIQSJGwT4COIOfhLIcyyYg== X-Received: by 2002:a62:1d05:: with SMTP id d5mr5501965pfd.63.1598389196565; Tue, 25 Aug 2020 13:59:56 -0700 (PDT) Received: from localhost.localdomain (h216-228-167-147.bendor.dedicated.static.tds.net. [216.228.167.147]) by smtp.gmail.com with ESMTPSA id k4sm16074pgr.87.2020.08.25.13.59.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 13:59:55 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 03/77] tests/tcg: Do not require FE_* exception bits Date: Tue, 25 Aug 2020 13:58:36 -0700 Message-Id: <20200825205950.730499-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200825205950.730499-1-richard.henderson@linaro.org> References: <20200825205950.730499-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::444; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x444.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.iglesias@gmail.com, =?utf-8?q?Alex_Benn=C3=A9e?= 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. Cc: Alex Bennée Signed-off-by: Richard Henderson --- tests/tcg/multiarch/float_helpers.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 2.25.1 Reviewed-by: Edgar E. Iglesias 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);