From patchwork Fri Mar 22 02:14:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liuhongt X-Patchwork-Id: 1914698 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=fRHQhmIU; 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 4V15W46vp9z1yWp for ; Fri, 22 Mar 2024 13:14:39 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1E6D83858421 for ; Fri, 22 Mar 2024 02:14:37 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by sourceware.org (Postfix) with ESMTPS id CE3B53858D28 for ; Fri, 22 Mar 2024 02:14:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CE3B53858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org CE3B53858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.7 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711073658; cv=none; b=xjM3rhSsXeDhQzRKxMaALD/fn9ZHatcPTn7BSf9ZvIZdVZ/7ax9spKdRMOWwAPRWV+ViZebJCXy0Z9NvCqfWztc5WK+9axigxtyGyi2qQZ5K1F1Rq9JZDaicDZvvJ6A9m+YElAl4qITAeJKMAMbmsORY3jhsqC4pThcQLBrSE6A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711073658; c=relaxed/simple; bh=F4V+f2cbb4WaEw9dtYUbXJSMjN01soNleYtJvJbvFPc=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=GsWk6OyORLAbZ/z06kfLC5JboAXo24SAKS6fTkEOZGeziEFrq+voCGec+G5pPYXIMTV16WLKQ1fSwe9cXmDf/SXaSFPbJpfzC75q/qDo4sBkw3auyf6m45c369cWjqr9k4NhGjVQc5YpUKdNYEdyc/cWG7LbPs1tgG32qGklVE0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711073656; x=1742609656; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=F4V+f2cbb4WaEw9dtYUbXJSMjN01soNleYtJvJbvFPc=; b=fRHQhmIUr8/S6qfmJfPx3/SmCsSPYUUW3TCieR5zXDlB0D8vv45+8FHj IkbcfypEGP/OxVmUOGs+49ukWP6oimgPtzAx7yPv26FOV8ckAebrSCy/i tq5P2dTC6loA+OqR2hXit4euXTOEHgJE6Riz9C3yR3qmwMXx058826iBF Bl80KMQH05UEkDuq1vfwreKPFCZ03PhGVtV1Zfy8xL0CQfSTP5Nc77dmh hI5t6k4HK/dHmC4OoWS3FoBI3675JXyFQ0lwr9u4D1rmGrRXxOR8DKySx YahwOPoLsDkK1Ir+umDyfiYfK/QA+xA5W37NvoF+yu+psb5aH3cYpX4aK A==; X-IronPort-AV: E=McAfee;i="6600,9927,11020"; a="31543290" X-IronPort-AV: E=Sophos;i="6.07,144,1708416000"; d="scan'208";a="31543290" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2024 19:14:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,144,1708416000"; d="scan'208";a="15146380" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by orviesa007.jf.intel.com with ESMTP; 21 Mar 2024 19:14:11 -0700 Received: from shliclel4217.sh.intel.com (shliclel4217.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id ECDEB1009147; Fri, 22 Mar 2024 10:14:09 +0800 (CST) From: liuhongt To: gcc-patches@gcc.gnu.org Cc: crazylht@gmail.com, hjl.tools@gmail.com Subject: [PATCH] Move pr114396.c from gcc.target/i386 to gcc.c-torture/execute. Date: Fri, 22 Mar 2024 10:14:09 +0800 Message-Id: <20240322021409.2225374-1-hongtao.liu@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, 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: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Also fixed a typo in the testcase. Commit as an obvious fix. gcc/testsuite/ChangeLog: PR tree-optimization/114396 * gcc.target/i386/pr114396.c: Move to... * gcc.c-torture/execute/pr114396.c: ...here. --- .../{gcc.target/i386 => gcc.c-torture/execute}/pr114396.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename gcc/testsuite/{gcc.target/i386 => gcc.c-torture/execute}/pr114396.c (92%) diff --git a/gcc/testsuite/gcc.target/i386/pr114396.c b/gcc/testsuite/gcc.c-torture/execute/pr114396.c similarity index 92% rename from gcc/testsuite/gcc.target/i386/pr114396.c rename to gcc/testsuite/gcc.c-torture/execute/pr114396.c index 4c4015f871f..baf90eafabf 100644 --- a/gcc/testsuite/gcc.target/i386/pr114396.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr114396.c @@ -1,5 +1,5 @@ -/* { dg-do run } */ -/* { dg-options "-O1 -fwrapv -fno-vect-cost-model" } */ +/* PR tree-optimization/114396 */ +/* { dg-additional-options "-fwrapv -fno-vect-cost-model" } */ short a = 0xF; short b[16]; @@ -88,7 +88,7 @@ int main() { exp = foo1 (a); res = foo1_o3 (a); - if (uexp != ures) + if (exp != res) __builtin_abort (); uexp = foou (a);