From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by sourceware.org (Postfix) with ESMTPS id 9F27D3858D1E for ; Tue, 20 Dec 2022 04:52:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9F27D3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-xb36.google.com with SMTP id o127so11754204yba.5 for ; Mon, 19 Dec 2022 20:52:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=1JErVs+DyQroMeaqOXj5tI3J1MNTCIXhofdfRowcmP8=; b=pIp5SSM/xzinxkOUhDABJgwoCLFhftgb6gKvr+0j/dwIxFHZb48waNgZoRDh5iF+WG xNgXWn5OXByYkvICUp6ABeFqDFBzQdzUH3oYtKTTPqbPIofq+nS1p12JaONCORWqgTxB +FlTcPbTGqGcHD6eliNt3ZnK1ie0yChdpcwcSf3SPUizEAwQjeHSy9mr7iOh/MoJJGuC 5KteXhFViolzlut9LWOlyPmmfP6HqVRUYXMV1XW7HTUW2B9xf1+udsQtBfFd5O8ZMAWi 3+yQrJLC9wEGbmUyJwwKbHgZlnXa7cMW0vFP6ihUY0n0G7+CjyGFhLaMDg/UwBB96SrA J5YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1JErVs+DyQroMeaqOXj5tI3J1MNTCIXhofdfRowcmP8=; b=yuPVWyzUlfNmAwKqSrp5zrbC7OSr5HhWJ61OtK6A1W4rMvfCGPoynNifoa5nUwbBTC XzmQ6lYNqImSZ6RjresZS37DUuPGwPSz5PX67fcPS57fTABw9UX50z+Tk4Vi5pVcE2QS p3Dpf2t4y9In7Q0lFfB4yjCA59p6pbgD7C4oEX0ooYfG0bNVHdhhBsCZGYgxeoEVqzUU TICDuK0RB4CJg7PcQCH12lWLZs/wGPMYriajpcu0fFiB8WDmie4Yfn3zjT59k0RaDwyY 8UI7s7ZZYTEiEojHHGOaY5AIiaKLKu+9TKVgYfMnBHN54CH+vuwAN9qxmKSsrRDRdNKa MY8Q== X-Gm-Message-State: ANoB5pkhRIr1p4WDqHQv4ilRbWr2SdNpeeSMxqIxmH62ZfrIMqnRjq9l T7RkANzG9sWlJbmOPqRzAQM3qGmBVzxS3gH/3Fw= X-Google-Smtp-Source: AA0mqf7Zv881hUh2IfvtQ5LEhbzyqumQ4CVycIa7xmt7fXbCXS9VCHuaElxLEDuo0THeOz7vMYASAtDuPB3DbS+JVr8= X-Received: by 2002:a25:6912:0:b0:72d:62e9:a9f3 with SMTP id e18-20020a256912000000b0072d62e9a9f3mr2854212ybc.624.1671511923020; Mon, 19 Dec 2022 20:52:03 -0800 (PST) MIME-Version: 1.0 References: <20221215062137.3128845-1-hongtao.liu@intel.com> <20221215062137.3128845-2-hongtao.liu@intel.com> In-Reply-To: From: Hongtao Liu Date: Tue, 20 Dec 2022 12:51:51 +0800 Message-ID: Subject: Re: [PATCH V2 2/2] [x86] x86: Add a new option -mdaz-ftz to enable FTZ and DAZ flags in MXCSR. To: Jakub Jelinek Cc: liuhongt , gcc-patches@gcc.gnu.org, hjl.tools@gmail.com, ubizjak@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 List-Id: On Thu, Dec 15, 2022 at 3:45 PM Hongtao Liu wrote: > > On Thu, Dec 15, 2022 at 3:39 PM Jakub Jelinek wrote: > > > > On Thu, Dec 15, 2022 at 02:21:37PM +0800, liuhongt via Gcc-patches wrot= e: > > > --- a/gcc/config/i386/i386.opt > > > +++ b/gcc/config/i386/i386.opt > > > @@ -420,6 +420,10 @@ mpc80 > > > Target RejectNegative > > > Set 80387 floating-point precision to 80-bit. > > > > > > +mdaz-ftz > > > +Target > > > > s/Target/Driver/ > Change to Driver and Got error like:cc1: error: command-line option > =E2=80=98-mdaz-ftz=E2=80=99 is valid for the driver but not for C. Hi Jakub: I didn't find a good solution to handle this error after changing *Target* to *Driver*, Could you give some hints how to solve this problem? Or is it ok for you to mark this as *Target*(there won't be any save and restore in cfun since there's no variable defined here.) > > > > > +Set the FTZ and DAZ Flags. > > > > Jakub > > > > > -- > BR, > Hongtao --=20 BR, Hongtao