From patchwork Fri Aug 28 14:18:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 248517 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1125612ilg; Fri, 28 Aug 2020 07:23:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8cQuzrFkGca9eqpZkl242hfHYDodw6PAPAiRNIDAe6p2SG508ULuUJdNSxLYpw8y33TQS X-Received: by 2002:a25:d486:: with SMTP id m128mr2655297ybf.188.1598624600992; Fri, 28 Aug 2020 07:23:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598624600; cv=none; d=google.com; s=arc-20160816; b=JATX6OGw5Yn65WIv+thBmnR2amdYxFHb00VrdbkWaY8Dm6Rm+kyiAd3oOe92DNstke aKxYBYvONg6zMdwci7WeEOPv/d/1IE7rNGlA6CjTvNelXazCsksy9rFru0IK+RWR+g3o IJzQGTfERNrJQg332kbZkqti+uOUm+uffpf/cEP64ymwaHkn7lnyEJxZvCgoJzn3DvKU exvnF95F2CDsjujDMSjm62JYBZ8iHUs9zCN078CZP3jw4RlRM8TDY3m2cj75ZcIyT9pR nN0x1CoMFYvGuVdPQB+5A2iDNKw6SfttiK9colw+acVShsPbrAB4o7C+csUuCpRajIfS 0bog== 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=4/yFPag8qdnd69lG7PXq/hNxrp/qSy4kCl2N10yso4g=; b=VXQuEXmCHeY7sb0x80yTWyBMwjzKXc+cNJr3+l3YVnzTseXmZubWWV+BFmSYf3Q3iz SiPKOWRCpWZCwx5q5S9qtneXWPtdOCYTpOeAeayIaBqtvnBhRke8FDENEgFUdWk2yshC Ph0nlYnqB4oA056i8DVCNwuovODeIo6bDWNiN1wtL3nquE5n7kFJIHtUyAeojZQjv7yQ MQNKkNt1O0+0MFyD3V6NRLQkG/Iet4p/0AKYNGsNcWytobmVR+F0QxV7TLSv+vUfVAg/ uGBXCqrgOlTViny5fuoXKBYJzeq8ezqnsqq/z17c+MXoIt2GarmwtdT4j9lKbWbArGpQ YB+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dEvb7744; 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 c6si912273ybk.112.2020.08.28.07.23.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Aug 2020 07:23: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=pass header.i=@linaro.org header.s=google header.b=dEvb7744; 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]:36426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBfHk-0006P7-DU for patch@linaro.org; Fri, 28 Aug 2020 10:23:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBfE9-0007pO-OR for qemu-devel@nongnu.org; Fri, 28 Aug 2020 10:19:37 -0400 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]:36186) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBfE8-00051p-Ao for qemu-devel@nongnu.org; Fri, 28 Aug 2020 10:19:37 -0400 Received: by mail-pg1-x541.google.com with SMTP id p37so532242pgl.3 for ; Fri, 28 Aug 2020 07:19: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 :mime-version:content-transfer-encoding; bh=4/yFPag8qdnd69lG7PXq/hNxrp/qSy4kCl2N10yso4g=; b=dEvb7744QiX0jYi3LW2PeIb24gLmK98aD/jOZEaUvsYDgiSJd+DE7LNiDEtSzsw0OT TLcoCtVqxPTXzyggpo8Tm4pKY5OwNKGQgbwiBD36fK3v2/zVpCMF5iO8CbiBQfsBstv9 iUcD8wcxzr7j/68ubvICK/uCP/msDES7DcTaftFRuhWBav+qasz75owl5Ud3kiUQqGla 8tkLIpeXzyLMsBHdMivvy2b+2V994NkqGwy9IxCn7obW6iODzXm1wr6Zwpr0OjP8l2Du 0cvS3Xk1V0up+ThE/4O5/PeS3IuKAtcQYutBVuh72z4VRIwH3RRbCdmCau1HOkNYnNvE Do4Q== 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=4/yFPag8qdnd69lG7PXq/hNxrp/qSy4kCl2N10yso4g=; b=FG8CdySAqKjTiN2HWmZY4Qz2+nvBmrjWYNcY6EcVyCeVup4CoPJaTd538xdSQ2hKWZ NBnvyRXoOw48+ERjn39Lax1wFPkWHQpunSNSt0qVemd3qGiL1ZytFp5IQsclWEw9pFBf TLIP7t2me8vThmt+L+Sbgsqd4AocTEOBeJSbB0GOMNg/RF0/WQccEOa+lRbtObYobeJv 38eHYUNH+Wy4OywdMWxHdZD2rM7E36pmdupYJhRJH2tMY4z1FdE3nF9tF+GQqsTcco8S H/2ziF71G2owEZEhC9uG++uaccrfFqlJs9n7GpFMCCFuGgmrO16qFpZKoBynLyhtnp7x 6g6Q== X-Gm-Message-State: AOAM532R7EeJ5bkYMg0UPCGNjWDYLNEPLy70PmnvKu+nCY9B22PDOnUv fTKZ4NOEScRoqep3cqntrfm7U14hcfFUIg== X-Received: by 2002:a63:4a1d:: with SMTP id x29mr1452626pga.317.1598624374751; Fri, 28 Aug 2020 07:19:34 -0700 (PDT) Received: from localhost.localdomain ([71.212.141.89]) by smtp.gmail.com with ESMTPSA id j3sm1403080pjw.23.2020.08.28.07.19.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2020 07:19:33 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 03/76] tests/tcg: Do not require FE_* exception bits Date: Fri, 28 Aug 2020 07:18:16 -0700 Message-Id: <20200828141929.77854-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200828141929.77854-1-richard.henderson@linaro.org> References: <20200828141929.77854-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::541; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x541.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@xilinx.com 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. 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 Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

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);