From patchwork Tue Mar 26 15:44:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 87672 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 618B93858413 for ; Tue, 26 Mar 2024 15:44:47 +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 A79F63858C36 for ; Tue, 26 Mar 2024 15:44:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A79F63858C36 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 A79F63858C36 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=1711467861; cv=none; b=dno7umgjPviwfb+TWHPOSzWeAeYgUbxpSE83USk3mFkmHzzcaPsFS5b+H4khmdj+4CIWS2jwKkxQzyPy5nvUwTJvRAG7dpI2b412bjS5LKUplGeoMQxRHs9JUTQtzGhJ3991WnEBEEsHwdvj0Mp1zt+UCLgMBYJ0aljOWlIIwTw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711467861; c=relaxed/simple; bh=4hL8of2CSvs+ucI3/Sa6ujCRSIFcP8isqbR9+EZkkeA=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=xv1xGXC82TwUR2SXMgYNTMPTN5QlQ6EVDsNS7hmrHv2fPZe2471VleGanAyBNXcduhjyNk6XJ3mtU8ClUbLE3bVktW0H8lSpBzDumRInzahlyBxdpBKUFNqUCGVu7nfWYrO1NSdUSkjlvvSuN/Yn8RDCWDTVFTG5eHddkuIeRmE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711467860; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type; bh=iPR02UAsl+Mixy6UoxnrJFpzkwk74GygymYX6trX19k=; b=G/EQWgApBU97ekArkRVU97oRmiTPA9aO23oKniEnV1VXMropnDa78V3xlJGnVdPkEuO3ep 30Ba9Jmqnh94g1Dyt2H7xeObZ94MnmJHe9jgfG4v4V4s3TGkxmoXlmZRqqMA/QvspQ+Uod bGE71BVkc0gVCvbdjOcy+auYGEbaydg= 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-394-IAifm4uVN4KXhd-8rj78Hw-1; Tue, 26 Mar 2024 11:44:18 -0400 X-MC-Unique: IAifm4uVN4KXhd-8rj78Hw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (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 E9972185A786 for ; Tue, 26 Mar 2024 15:44:17 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.57]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AE23D2166B33 for ; Tue, 26 Mar 2024 15:44:17 +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 42QFiBMo2934831 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Tue, 26 Mar 2024 16:44:11 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 42QFiAdT2934830 for gcc-patches@gcc.gnu.org; Tue, 26 Mar 2024 16:44:10 +0100 Date: Tue, 26 Mar 2024 16:44:10 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Fix up pr111151.c testcase [PR114486] Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 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+patchwork=sourceware.org@gcc.gnu.org Hi! Apparently I've somehow screwed up the adjustments of the originally tested testcase, tweaked it so that in the second/third cases it actually see a MAX_EXPR rather than COND_EXPR the MAX_EXPR has been optimized into, and didn't update the expected value. Tested on x86_64-linux -m32/-m64 with older and current trunk, committed to trunk as obvious. 2024-03-26 Jakub Jelinek PR middle-end/111151 PR testsuite/114486 * gcc.c-torture/execute/pr111151.c (main): Fix up expected value for f. Jakub --- gcc/testsuite/gcc.c-torture/execute/pr111151.c.jj 2024-03-26 11:21:31.000000000 +0100 +++ gcc/testsuite/gcc.c-torture/execute/pr111151.c 2024-03-26 16:33:17.342319263 +0100 @@ -11,7 +11,7 @@ main () int d = (-__INT_MAX__ - 1) / 2; int e = 10; int f = (d * 2 > e * 5 ? d * 2 : e * 5) * 6; - if (f != 120) + if (f != 300) __builtin_abort (); int g = (-__INT_MAX__ - 1) / 2; int h = 0;