From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by sourceware.org (Postfix) with ESMTPS id 37C2F3858D1E for ; Thu, 22 Dec 2022 04:40:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 37C2F3858D1E 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-xb32.google.com with SMTP id e141so721274ybh.3 for ; Wed, 21 Dec 2022 20:40:50 -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=M6BWCnFIcd8J/L/Xbz88Gt+nP3sK/U04l4DdtQez6BQ=; b=duzyysT8TR5ZiB3tkpAp+FijwJ5UabVfzFDzxuA0L5NUCshTSvapkD6G89HxFRgvfR aVCTt4nb3Fr9765E+SgrdoQtv7cRqsyqG0s7ftmCmjg6TDAHndzyZpMX6w8JRMB+mqmL WCwazIgLt/qJ+TOE7oiu9QFxUU52PKhY6RvjI/3Oc70lsAOxq18vpLHALaG03QQuj7Sr U8P8u/rxHNAq+rrN2EIX/ukP6znV0LmL16f/jTZPiC3RRTWZWLVvlPWF8tASOGGrjWeP 52nxmA1G/yE1lZAvmFgzRA/9PMX9PXrpS8kOZMuPouRYV11K9FfU5LXqokrRYvxc5FCF I6xQ== 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=M6BWCnFIcd8J/L/Xbz88Gt+nP3sK/U04l4DdtQez6BQ=; b=ahbKcea0SD/sLFhh2NYER1AWfdT4A3jkZwm/akJspowoUM1CY3g/9QAbp4dMbNdPe9 1fCRSoi7xPodOdkYYmZeHLmGVRooNYp31lm7BtL/xAf94hI5C2nI1dbnG/z+QFLQ9yvJ YpzWlANWG3kVJS+TtNNjWAOw94nBnARWpzRMUhBi7Q0HP1xJf13G1KOUjTzKrz4tV5eN 4nDzDMTZOiKvmdTIpFyO1pFVc+0otZN7aN+a5ba7wfBkMN9mQSxp8oJGiblasNvUJFoN BAixgCbAiAwHc6Hc4VDwgRBuiKGxE1K51AvB8aZSJNXKiLEBhwK7/FkNtGdxIWZ9zLL0 kpGw== X-Gm-Message-State: AFqh2kpBiR3GW4dspmvZH2b7XU6dqbgn0dZAjT6Yfi61ypqJwySXgqoN 1a4PkRM6QdYH3Vls4g7Nmd23E3PYXIFtEd0n+JU= X-Google-Smtp-Source: AMrXdXuuvC1HKmq2C8l4O3ye92vtrLuBHQd8wQ5BMrEl0yHEUO+LiUwXBYg2CpNr+FjYwJUyCx+hXonj734pfInxWQE= X-Received: by 2002:a25:4806:0:b0:70a:3c8:53f8 with SMTP id v6-20020a254806000000b0070a03c853f8mr482274yba.611.1671684049559; Wed, 21 Dec 2022 20:40:49 -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: Thu, 22 Dec 2022 12:40:38 +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: ubizjak@gmail.com Cc: "H.J. Lu" , gcc-patches@gcc.gnu.org, Jakub Jelinek Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.8 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 22, 2022 at 6:46 AM Jakub Jelinek wrote: > > On Wed, Dec 21, 2022 at 02:43:43PM -0800, H.J. Lu wrote: > > > > > > > > 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 op= tion > > > > > > =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 changi= ng > > > > > *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 s= ave > > > > > and restore in cfun since there's no variable defined here.) > > > > > > > > Since all -m* options are passed to cc1, -mdaz-ftz can't be marked > > > > as Driver. We need to give it a different name to mark it as Drive= r. > > > > > > It is ok like that. > > > > > > Jakub > > > > > > > The GCC driver handles -mno-XXX automatically for -mXXX. Use > > a different name needs to handle the negation. Or we can do something > > like this to check for CL_DRIVER before passing it to cc1. > > I meant I'm ok with -m{,no-}daz-ftz option being Target rather than Drive= r. > Thanks. Uros, Is the patch for you? > Jakub > --=20 BR, Hongtao