From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by sourceware.org (Postfix) with ESMTPS id 2BAC03858403 for ; Fri, 22 Apr 2022 15:33:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2BAC03858403 Received: by mail-ed1-x532.google.com with SMTP id p18so5702441edr.7 for ; Fri, 22 Apr 2022 08:33:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=oMYP1w/GJxszEgQgd3pcq/KhhnePO6LOBGYfaXMHRwA=; b=id7yNh0ovLQwlQ7smPTjGH3KH7PwpVd9he2lX9HsSHYBvZWttWIx2xeKK1857OsY+Y S46f+zJwt/rEujrO60TdYSilOyNuylhgwoahtADwGtWJKsJ75fqUaJjkGQN6Mq2j1mS4 yJsBGJ7qlmdtswo3l1EBGz4cD9JqOMMhetOFNX9fMSxVhlkpvNmY4xl8F1wMQ8SImwBG DcXAVTVPY/x5a1HAwawOjeIeGzgkemq5fQldwFsVdLpyA/o2QUeJ6q3Dn4ir3gMQIBEc /JWYvvppnbY7jeMCFBUs/y6ObF+InFDi7rmmmsCp2Vj8Z8lmwTCXX7vx+EJetD3Wo76V LCpQ== X-Gm-Message-State: AOAM532FhG2asr3ki8Ly5fDFDO1zM4yfHV8qch59+/bfqwjOyN3Vx+J0 8H9F4w37RwCCgztps9uCTShCYhJRpz8= X-Google-Smtp-Source: ABdhPJz5Ub6iMdQwnJ+8hYCfiO0KNpFn5XmLqAmMZkkpYG6CG6tCkSR3IKOv0h0gT9T7Nd22n+XnHA== X-Received: by 2002:a05:6402:5252:b0:423:dba1:3a32 with SMTP id t18-20020a056402525200b00423dba13a32mr5545684edd.269.1650641601811; Fri, 22 Apr 2022 08:33:21 -0700 (PDT) Received: from ishi (ip-94-113-197-231.net.upcbroadband.cz. [94.113.197.231]) by smtp.gmail.com with ESMTPSA id ee17-20020a056402291100b0041fe1e4e342sm989981edb.27.2022.04.22.08.33.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 08:33:21 -0700 (PDT) Date: Fri, 22 Apr 2022 17:33:19 +0200 From: sajcho To: gcc-help@gcc.gnu.org Subject: Re: Do not perform tests that are not supported by the CPU. Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.1 (Linux 5.17.3-saux aarch64) X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2022 15:33:25 -0000 On 22-04-22 15:32:07, Jonathan Wakely wrote: > On Fri, 22 Apr 2022 at 14:18, sajcho via Gcc-help wrote: > > > > Hi. > > > > lscpu output: > > > > Architecture: aarch64 > > CPU op-mode(s): 32-bit, 64-bit > > Byte Order: Little Endian > > CPU(s): 6 > > On-line CPU(s) list: 0,3-5 > > Off-line CPU(s) list: 1,2 > > Vendor ID: ARM > > Model name: Cortex-A57 > > Model: 3 > > Thread(s) per core: 1 > > Core(s) per cluster: 4 > > Socket(s): - > > Cluster(s): 1 > > Stepping: r1p3 > > CPU max MHz: 2035,2000 > > CPU min MHz: 960,0000 > > BogoMIPS: 62.50 > > Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid > > Caches (sum of all): > > L1d: 128 KiB (4 instances) > > L1i: 192 KiB (4 instances) > > L2: 2 MiB (1 instance) > > NUMA: > > NUMA node(s): 1 > > NUMA node0 CPU(s): 0,3-5 > > Vulnerabilities: > > Itlb multihit: Not affected > > L1tf: Not affected > > Mds: Not affected > > Meltdown: Mitigation; PTI > > Spec store bypass: Not affected > > Spectre v1: Mitigation; __user pointer sanitization > > Spectre v2: Mitigation; Branch predictor hardening, BHB > > Srbds: Not affected > > Tsx async abort: Not affected > > > > ../configure --prefix=/usr --libexecdir=/usr/lib --enable-languages=c,c++,fortran,lto --enable-threads=posix --enable-__cxa_atexit --enable-default-pie --enable-default-ssp --enable-linker-build-id --enable-initfini-array --enable-link-serialization=1 --enable-gnu-indirect-function --enable-plugin --disable-nls --disable-multilib --disable-sjlj-exceptions --disable-libunwind-exceptions --disable-libquadmath-support --disable-libquadmath --with-system-zlib --with-linker-hash-style=gnu --with-build-config=bootstrap-lto --with-pkgversion=SAUX-Aarch64 --build=aarch64-unknown-linux-gnu --host=aarch64-unknown-linux-gnu > > > > make profiledbootstrap > > > > This is where my question begins. > > Is there any easy way to avoid tests (sve, sve2, aapcs ....) that are not supported by this cpu? > > In theory you shouldn't need to do anything. Tests that use those > features should be restricted to only run when the CPU supports them, > via https://gcc.gnu.org/onlinedocs/gccint/Effective-Target-Keywords.html#AArch64-specific-attributes > > In practice, some tests might not use the correct keywords to ensure > that happens. > > Have you tried it? > He didn't try. I'm confused. These attributes are specified in lib/target-supports.exp. I don't know how to use them. I don't think my knowledge is sufficient. --- Remember, no question is too stupid and no problem too small *** We've all been beginners ***