From patchwork Fri Mar 22 09:38:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 1914788 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=NFmWoLpJ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V1HMy3zfVz1yXy for ; Fri, 22 Mar 2024 20:39:10 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 97C143858421 for ; Fri, 22 Mar 2024 09:39:08 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 6AC003858D28 for ; Fri, 22 Mar 2024 09:38:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6AC003858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6AC003858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711100303; cv=none; b=eYl1/aMN+S+kgPLx+tpsVBl8TAXaV3kwqLwJc9F7ZzwuXm2bZm6xt8Q3bACorAIj6EyoQOD7ZtWAKSHpgKeQYfPcWHY1cCTq/UYDgbd9A9zkpYjmd3ihnP3oqhTCLt+C5PcKIhl928NIBzfzWFVQzoxjtik3Nxu1Luz278e+JoA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711100303; c=relaxed/simple; bh=zNmdg1vEwBPlwvv+NlEsWyv44LllcevTMEmNyw6Q0KY=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=XDl6w2U9/Js5oG/q3C6PqXWuPrDmZ8wgD3VPBxQLwlExhP1YR+sXQB8Ty5wjSSWav8xYAB9EUZK2fhCD+h1BCd8+z63k1Lal0vg/J4IHuREDaBDjXKhJjoGCaMsNcrE7zw6CbCvSBpSIcFUqe+PIc4FZYzKqQjKqsSOXYwjKzj8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711100301; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type; bh=HlSbigDQzpdzJPIjGDNbN8xnUz0wegyEIxZ6LsF/eWA=; b=NFmWoLpJRvpKRxLntxQ4wELnCKXJ4Mle+h90wbGVeHV1tbH0qQlittRgjhXYlYrN5b0W9V Jxm3oHrwkWoOQA6Y1DS6BvCHJ+F+YcBiWUhdJwQ0yX3WVMLOK9sBceZWrvNNggQO62W2vy Oyl7M2eU+ByJJB+rBKjOvBXE85MWJ7o= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-220-JjN4MTaMO0GDieH-h5SSwg-1; Fri, 22 Mar 2024 05:38:17 -0400 X-MC-Unique: JjN4MTaMO0GDieH-h5SSwg-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0159B101A56C; Fri, 22 Mar 2024 09:38:17 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.57]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B98AB492BD0; Fri, 22 Mar 2024 09:38:16 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 42M9cAse1477384 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 22 Mar 2024 10:38:10 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 42M9c9eJ1477383; Fri, 22 Mar 2024 10:38:09 +0100 Date: Fri, 22 Mar 2024 10:38:09 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Cc: Tobias Burnus Subject: [committed] testsuite: Fix up depobj-3.c test on i686-linux [PR112724] Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Jakub Jelinek Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Hi! While I've posted a patch to handle EXCESS_PRECISION_EXPR in C/C++ pretty printing, still we'd need to handle (a + (float)5) and (float)(((long double)a) + (long double)5) and possibly (float)(((double)a) + (double)5) too for s390?, so the following patch just uses -fexcess-precision=fast, so that the expression is always the same. Tested on x86_64-linux -m32/-m64, committed to trunk. 2024-03-22 Jakub Jelinek PR c++/112724 * c-c++-common/gomp/depobj-3.c: Add -fexcess-precision=fast as dg-additional-options. Jakub --- gcc/testsuite/c-c++-common/gomp/depobj-3.c.jj 2023-12-01 08:10:43.769309565 +0100 +++ gcc/testsuite/c-c++-common/gomp/depobj-3.c 2024-03-22 10:12:17.680085428 +0100 @@ -1,3 +1,5 @@ +/* { dg-additional-options "-fexcess-precision=fast" } */ + typedef struct __attribute__((__aligned__ (sizeof (void *)))) omp_depend_t { char __omp_depend_t__[2 * sizeof (void *)]; } omp_depend_t;