From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27644 invoked by alias); 21 Oct 2016 17:05:52 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 27614 invoked by uid 89); 21 Oct 2016 17:05:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy=ffs X-HELO: relay1.mentorg.com Date: Fri, 21 Oct 2016 17:05:00 -0000 From: Joseph Myers To: Subject: Use -fno-builtin for sqrt benchmark Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-SW-Source: 2016-10/txt/msg00364.txt.bz2 This patch makes the sqrt benchmark use -fno-builtin, as already done for benchmarks of ffs and ffsll, so that it actually benchmarks the glibc function as (presumably) intended even in the presence of the compiler inlining sqrt. Tested for x86_64 and also used for benchmarking my ARM sqrt patch. 2016-10-21 Joseph Myers * benchtests/Makefile (CFLAGS-bench-sqrt.c): New variable. diff --git a/benchtests/Makefile b/benchtests/Makefile index 144b32e..5a61522 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -72,6 +72,7 @@ benchset := $(string-benchset-all) $(stdlib-benchset) $(stdio-common-benchset) \ CFLAGS-bench-ffs.c += -fno-builtin CFLAGS-bench-ffsll.c += -fno-builtin +CFLAGS-bench-sqrt.c += -fno-builtin bench-malloc := malloc-thread -- Joseph S. Myers joseph@codesourcery.com