From patchwork Thu Jul 18 09:28:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kong, Lingling" X-Patchwork-Id: 1962033 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=ZSYOHWuw; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4WPnZZ20SCz20B2 for ; Thu, 18 Jul 2024 19:29:42 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3B0CD3858294 for ; Thu, 18 Jul 2024 09:29:40 +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 [198.175.65.9]) by sourceware.org (Postfix) with ESMTPS id CEA603858D28 for ; Thu, 18 Jul 2024 09:29:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CEA603858D28 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 CEA603858D28 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=198.175.65.9 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1721294951; cv=pass; b=CBKGlURzI+Acbec16E7bvsOWql3Yy1XAWQIxP3nKeMoTACZrfZX+mOgksIUdk2ATFn+OgMC2v73dS0trYF0LN9wsHWVm7S1/YIiXlUE72jaWu7G4BsQKumS3zY2DPNe860F9t0qItK4xmNwu4p9Shko9W99ktdysaOz5quEquyw= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1721294951; c=relaxed/simple; bh=2txImfD+lzsKMFDMDAgi/MvuUmZkbSEEhJ7NvRblaFk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=cutxewenFHEDZOOZ0M9P2tzARRWDGaqnMLDPrV04NEkvNOWw+5gXMWtqXkSI2BrCwEhwOLzRGd8p/B/RNHp3AMgb/1SBEbW0lxJoLeztsaSv2LsvMJAbAauoIPlG9zWnjw1Vmp+YKpesRNumwWSYO1L2go+6ySSHonp9IBmlQXo= ARC-Authentication-Results: i=2; 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=1721294950; x=1752830950; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=2txImfD+lzsKMFDMDAgi/MvuUmZkbSEEhJ7NvRblaFk=; b=ZSYOHWuw2tWl1wY6w+8p3bF7yrPssoA7Ffn7yJlPP5Y1rKvULw4B/+59 BOmHgz09gFZTnH+OVfF6WW7bzc7XaIp/aeX9VEBWIOWojCvcb6q97Y9RZ ePgeJYtdbUwOMTUr/RNFQfZiJaOwSYCyyYepacSgM5S0DLlT6e6P0FaAo bBbfVZ1Gt33z6pgcO0HTRfo/2FwjmKofJQXZC4rTSvTv3L78TZqGTIzZQ gTovomyMX/eGTcoNqgJyO22DUxbImCwV1rB4NDZZL7gQgpXrX+p/RgfwA JEV2oNIr6oiBVj3DwnW6XF9+IqAsdnVb41RVoHNPpQh4Vh1erMA+i7hVw g==; X-CSE-ConnectionGUID: ctfgc8xTTyebbxcWu6HNAQ== X-CSE-MsgGUID: AHdLKqCpTBm4C10Q0GV3+w== X-IronPort-AV: E=McAfee;i="6700,10204,11136"; a="41368000" X-IronPort-AV: E=Sophos;i="6.09,217,1716274800"; d="scan'208";a="41368000" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2024 02:29:09 -0700 X-CSE-ConnectionGUID: I/0YLzEkQKagApc+fhzRvw== X-CSE-MsgGUID: dHYqcyJmSyWntye0Ba+uJA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,217,1716274800"; d="scan'208";a="55223276" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmviesa004.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 18 Jul 2024 02:29:09 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 18 Jul 2024 02:29:07 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 18 Jul 2024 02:29:07 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Thu, 18 Jul 2024 02:29:07 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.169) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 18 Jul 2024 02:29:07 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=QPDfiOKT4oAmMITiADJUco02y9yXQOeV2PJ9072SCR3D1UApSJW/DqzNSXirhCR1LbTDDTLo/xmVYRDRELu67S13AHZMNUGK/bsjOe4ePD/q47TPH0TzTi2g3ekhv25m5EaROhe8+ZpfKU38yz43/rf7v1rgBP0So1zy9d57GeY2e9G5uqX+H2arnjiBO4y78meLo6m9rH2w0idRmRnsxK4VFqhEcvWwM3pSKWIFhtvwcGwpoup8Fm+VjYsnpTsSYaaOHV7E+Q2VYChRysCi/3GncHZS/YiCVO0RtSvAuZEv82hUPDB9d0b5kE5+EdtwnGXLtUNgHXXIm6v1xyssTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1UT11Kq9TWnLy0Qk8RGDAeqTO81gkbW13RE0z94Nazk=; b=SCsHdvedtwvp/HrX3e8UibaqHxGq7ADqpkEFU3P9Z9nrjOGhslUo6UNm+A+wv7oNIFBTcAnkJApoAVBqIVzCAnoEpmRg73zTe7iN3fxv6MRuk/FOEVl4Z0YbdFeVbBaaBKBK9fpGWzVQU+RpV93kda+UlZm78me5GH/bz7ODZyS6gXf2sZyP5HAtT3KdIg5gybmQjSLHZplzsKq0jFFIuNhvsr3X2ej/fN/m0w1wE9xBKN6Je4b35YKSQH4qsZBxP2+x21MOAuYu6dDh5k39/0fFLWI5z6TuM5NXEi0S/0E1ixdsQZDdkEVXHbtwB/tyXJZ2yDB0+rzCkIvluTQoYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from DM4PR11MB5487.namprd11.prod.outlook.com (2603:10b6:5:39f::22) by CYYPR11MB8357.namprd11.prod.outlook.com (2603:10b6:930:c5::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.29; Thu, 18 Jul 2024 09:29:00 +0000 Received: from DM4PR11MB5487.namprd11.prod.outlook.com ([fe80::8221:de1b:c203:95d2]) by DM4PR11MB5487.namprd11.prod.outlook.com ([fe80::8221:de1b:c203:95d2%4]) with mapi id 15.20.7784.017; Thu, 18 Jul 2024 09:28:59 +0000 From: "Kong, Lingling" To: "H. J. Lu" , GCC Patches CC: "Liu, Hongtao" Subject: [PATCH] x86: Don't enable APX_F in 32-bit mode. Thread-Topic: [PATCH] x86: Don't enable APX_F in 32-bit mode. Thread-Index: AQHa2PTrWGdNmHbksEilHH223WcHlA== Date: Thu, 18 Jul 2024 09:28:59 +0000 Message-ID: References: <20240718092118.2574305-1-lingling.kong@intel.com> In-Reply-To: <20240718092118.2574305-1-lingling.kong@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DM4PR11MB5487:EE_|CYYPR11MB8357:EE_ x-ms-office365-filtering-correlation-id: 0659f83e-596d-4ebf-b567-08dca70c0e24 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|376014|1800799024|366016|38070700018; x-microsoft-antispam-message-info: ePoDs3mHXqafpzF8uNFozuTL3JcD608zH0zXw/mjnTiY3Wd/pmv1FHn9bFZMazXkVVg+qilzve8mJBx66iuOwjYVQAeR8gUPf4afHPa9gNpFWoe5Wy2XvLrfuXOvifYlkgrNgCOVGKefwnmwmRZrYPNM/s8Fog2hdFCKig9CVYE/zr+nSIZvqqdE5w5uDY2fOtMNRxBwyBxoMMmotHzElNFrDwYX4U6+0ALwe0bEGU8624iC8BRHU9ClvmqmiZ3g3ux4Iq2+ySG3tpNX1hN8PA5Lq93vvTCVXjswxycDgIrZCbSd9gt8vV+ALCoYKBhN30Qz8N5GLJUv3ATpJPNsqoJmPcdhKmwTkylkHvbmlKaL0CBDsoRzyvRIpw41kswnrEqeZIZpGTx/BAkKZU+OQJPz6SeTb0+1mmsJ4/K6FBJjNc08U/zgduizX+7U7TPbbf+inKogmgBFMUtOHfKsmaNfhHDIw410umZSmtBHO5/ONRO0Xi9T2uYCTcd5DFp12/F+CWKWrn0ViyYwoho7MNVPZUkBvFzOwyPkmh1MpKoq6yW3o+kAFh3OqnkuRSMx9gELKU98A5OCiYf7Jnj3Jc7Cgm9J+TB7/Yvx/VYdDTGOmG4z9Ln9PNh6AhAR0Y2dzm/jMB2iVJlD2QmWQmQpOH+bdKBw1CWeACc10NdNLNMSTiEAbEjY07gl0Y9kxarZl2I/d6C/SfRxyW9OayqmOvTKl0ANa8RtVBsdgl66MvcCsaZHd/z3BLT+vVX1jJVonjKxnvIBRX9mAfpnPB+NRuF7vxKJ5K1yGmkWCxMGslMbrsbjDVPe/ojU99XExK6ZRFhbOYRCR9QAZY6uXJiZYHFUbncMPWfRrfLB04BciQwpVatrgaKvqbgKy36YdEX0IFgjiFJbIuwMfIPA19Jgq9O/Gx2mxUY5iaYCvnXljpkHqFjw7d0x2cl/5sytukMBgReMXaAKzO7sbRO2QpvQpj8lfWK0VsBELvToz5UK8qDAyQQhi3LCpZ2DseIf5zB+809e/Dh6Wzfuv+nKMnyfp6ae+JoFePz/tTp4DinsDUS1DKnIr83ws4HJTfDpmXFYXuj4iIEdy/fW7G31Kod0ws1uVdU4P7KCnZFh9AtKfjykFjgSg19X/mU7JYoRU6kAt9K/zD/vy+k34agAh2gBWkcjP56WKx67FxXJlZUj7FQ6aM4dJLBU6TV3plCXd0j7+lUZSv3O+/fr4pQa+MBMCyqudmqfML5xgtFJo92pnhRl+QWtQ6EF2COFkg+6Qxpx1LooQ6YhpOXwoF/BY9SolZ37LZmohHB85NB+VhyXJNgXyzpULToiwXVq6P/4nGjrGheS/ROqOrvpMDq0zz2N45qrorg3aHxvX0j2utLjwY4= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5487.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: vcIS0GA0ExeklH9q8LQj5waxtBAs4Q536H5m/leeEGslTsz08+NKbcWaJXvlu7Q/q7qbmmWBQ1G6T8Nn8JwHjlHBv2/O3uqP98VTzZ2offfsRXbGSwWU9Pb2RHk5i/IOSrTGuewM167v9p3gKatW2IPlJCp+u7l8unMgwil+0XLJe6pZU+D7b4g8ziCJWL5MC9MKaYjZF3Nct4N/6nXJrY1pN1jQGFqw0T+eTj48mAIQkKbfQ/x9G9pV/50eHLkL9yww4wlQ1cD4YYMZUS3JZD8MmtlNw/oLmMkeehxWtObSg/mAOCbjfinTpNISFhzWFvnVwTqEvJnD1HKZD5w/o6z5VhHTF14QskP4mWl34ey0H6/SIcuWlpz/b3q+rdUpkM5Fyg1c+i06WVa0H8M+WeVOQ0hzO9CMUQDaF0vb6hSFEoOAaJxli8dx5LRHUyw8KHOZk7iuk7P1/uFbtCqo9IaUBFyLelproDraFQxGtA2CL87AL8ScnDS5yPjyMgMbCIEGsd8cHXIeM5eBhBi38OSJ0VfJ+/47hOMZQYKevH6n1hfdBl6r6JwhEYAVmgxYS0FA37D6ATZbzM4w07J4TnY1maIywqEXSsZisq2YO0SfbWqtkUpbMZcs9zk9nOe4Idfaru/oxA/9AedYZ+IfKlrn0CmHkaF11SAvWzQ8cwMKMOZiwq7rXHsiSoqFK71BcL2lAOxyUZRrhDb+7JqELR+kmvH3VDTnMVK+5LVLRsxLh+Saf/iiKALQP1UQkfzw1MeEW72VdjKhoFZwG14OCb1wWtYX8fGD39wWCam8xtNnfkEw/HXeZD+6CR06bZBmv4xat269akEgQR1afgcEuL/DO9kA1d1nOIAYru3gYqxkFdx8G4SL7tva5rr34sSH/zphFm8qiEb5HIv8Nu6ra+iQ1CaUmvABNCARnnBLinon+4Qi8bE02vp3Qr56zDcYBHZd5NwHSB2HLq5hDXWsLDIzNai5TIXMQsqWY0CbxD8AWFtBz2fgVlCOqkLHpyasiZA6YADKmrXZ2slbo1nJLgr6X98LTuwj7Vheun+nOB8Ak4w/pKnFZGSi7QK5AJeCY6uHyoxzmuVlfWI2F+/YWRfeH9mrAkz2LPbCGor7DLrXTU6s23U6aZY1HZcpxLdAfr8rtNTgWFUkFC1SRhfgPVC+bQwfO+Au5Yy8ISxdXIoZlE0615iNZjmNmTKfbMgGN1sfbFf0ULkFLEE3tYTEEYHFRhRzbbHqRKu5y10WJJemnQUjUnzu9dfcAYJ7L5pePUKj2mHs5dCOGZ54KeYrYgNoini2dI8Fj7XiHjtyI94fZ1KR+SkVQu9D+M+cuSCcTMAHCldk5AUhav4UTWZHZOSaqEM+bmy6BhcW+lhE8fS6UhIP/2YrHYjqLIl3Pfee/kzZt2d7ECrMx7acgYlG5rF9VJERH+vshAbOTFkj2RivI25Zf9bCKvmjk5wi1vhqPu8fwcCyzmyyzd9YmDVzfg7OV4fnZT26Oa5TDFIhH4U8ozNsfdb5ACeyPI+cjdoOzGWnwAQPjeF5dtTWL2AotVTI3s30+l0yIy4RU6/SkmFZanN8E/a0RGBprTVZST8Z MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5487.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0659f83e-596d-4ebf-b567-08dca70c0e24 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jul 2024 09:28:59.8289 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QTskgc1b5j8j9AYJfH/iOPs4QlCUuHJ7+Y7qPoLNUUKSPoIqpsvNt3IheXG4LtitlyEoMW1mSQ7vCqeYwp1FXg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR11MB8357 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-13.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, 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 I adjusted my patch based on the comments by H.J. And I will add the testcase like gcc.target/i386/pr101395-1.c when the march for APX is determined. Ok for trunk? Thanks, Lingling gcc/ChangeLog: PR target/115978 * config/i386/driver-i386.cc (host_detect_local_cpu): Enable APX_F only for 64-bit codegen. * config/i386/i386-options.cc (DEF_PTA): Skip PTA_APX_F if not in 64-bit mode. gcc/testsuite/ChangeLog: PR target/115978 * gcc.target/i386/pr115978-1.c: New test. * gcc.target/i386/pr115978-2.c: Ditto. --- gcc/config/i386/driver-i386.cc | 3 ++- gcc/config/i386/i386-options.cc | 3 ++- gcc/testsuite/gcc.target/i386/pr115978-1.c | 22 ++++++++++++++++++++++ gcc/testsuite/gcc.target/i386/pr115978-2.c | 6 ++++++ 4 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 gcc/testsuite/gcc.target/i386/pr115978-1.c create mode 100644 gcc/testsuite/gcc.target/i386/pr115978-2.c -- 2.31.1 diff --git a/gcc/config/i386/driver-i386.cc b/gcc/config/i386/driver-i386.cc index 11470eaea12..445f5640155 100644 --- a/gcc/config/i386/driver-i386.cc +++ b/gcc/config/i386/driver-i386.cc @@ -900,7 +900,8 @@ const char *host_detect_local_cpu (int argc, const char **argv) if (has_feature (isa_names_table[i].feature)) { if (codegen_x86_64 - || isa_names_table[i].feature != FEATURE_UINTR) + || (isa_names_table[i].feature != FEATURE_UINTR + && isa_names_table[i].feature != FEATURE_APX_F)) options = concat (options, " ", isa_names_table[i].option, NULL); } diff --git a/gcc/config/i386/i386-options.cc b/gcc/config/i386/i386-options.cc index 059ef3ae6ad..1c8f7835af2 100644 --- a/gcc/config/i386/i386-options.cc +++ b/gcc/config/i386/i386-options.cc @@ -2351,7 +2351,8 @@ ix86_option_override_internal (bool main_args_p, #define DEF_PTA(NAME) \ if (((processor_alias_table[i].flags & PTA_ ## NAME) != 0) \ && PTA_ ## NAME != PTA_64BIT \ - && (TARGET_64BIT || PTA_ ## NAME != PTA_UINTR) \ + && (TARGET_64BIT || (PTA_ ## NAME != PTA_UINTR \ + && PTA_ ## NAME != PTA_APX_F))\ && !TARGET_EXPLICIT_ ## NAME ## _P (opts)) \ SET_TARGET_ ## NAME (opts); #include "i386-isa.def" diff --git a/gcc/testsuite/gcc.target/i386/pr115978-1.c b/gcc/testsuite/gcc.target/i386/pr115978-1.c new file mode 100644 index 00000000000..18a1c5f153a --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr115978-1.c @@ -0,0 +1,22 @@ +/* { dg-do run } */ +/* { dg-options "-O2 -march=native" } */ + +int +main () +{ + if (__builtin_cpu_supports ("apxf")) + { +#ifdef __x86_64__ +# ifndef __APX_F__ + __builtin_abort (); +# endif +#else +# ifdef __APX_F__ + __builtin_abort (); +# endif +#endif + return 0; + } + + return 0; +} diff --git a/gcc/testsuite/gcc.target/i386/pr115978-2.c b/gcc/testsuite/gcc.target/i386/pr115978-2.c new file mode 100644 index 00000000000..900d6eb096a --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr115978-2.c @@ -0,0 +1,6 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -march=native -mno-apxf" } */ + +#ifdef __APX_F__ +# error APX_F should be disabled +#endif