From patchwork Fri Nov 4 21:06:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Steve Ellcey X-Patchwork-Id: 80927 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp176709qge; Fri, 4 Nov 2016 14:06:46 -0700 (PDT) X-Received: by 10.98.28.79 with SMTP id c76mr29877446pfc.8.1478293606503; Fri, 04 Nov 2016 14:06:46 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id q6si10778650pay.310.2016.11.04.14.06.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Nov 2016 14:06:46 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-74448-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-74448-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-74448-patch=linaro.org@sourceware.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version; q=dns; s=default; b=yBMoF QtVryTxOgi570ZF4sdVZtWV25C7OtY/ORIfRYUT9g28XNbE38s4J8ceA5SHacsRu DkFeVNHA7LriU7yzatsAweKI+KdsAE81VXNUzshigW5mpsd3hssMpnNG3ADZ8roj FBgXQYklUts4LCXds99H0y7ub0mMlC352eBcXA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version; s=default; bh=uaWwvpfhwHv iSQqXFlvepiB0gaM=; b=ev+pEob0aizFQkjoXJyyHleZ5ypCm5WE42lYA+C0VJv qeXyRqKx+vkf8o2XsRlbqTvPzCp6w76yqBbtJ/T6WsT7tGY6aP8cAxQfWWpsghZS 0RzmSg4ddsLAXIS1AaQu3u3DA6s5ImdgLiOlHybApYL70El3OqRqYduXRbeyWriE = Received: (qmail 78062 invoked by alias); 4 Nov 2016 21:06:31 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 78038 invoked by uid 89); 4 Nov 2016 21:06:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: NAM02-SN1-obe.outbound.protection.outlook.com Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Steve.Ellcey@cavium.com; Message-ID: <1478293571.4630.29.camel@caviumnetworks.com> Subject: Re: [PATCH] Speed up math/test-tgmath2.c From: Steve Ellcey To: Joseph Myers CC: Date: Fri, 4 Nov 2016 14:06:11 -0700 In-Reply-To: References: <1477354555.8523.78.camel@caviumnetworks.com> <1478280156.4630.18.camel@caviumnetworks.com> MIME-Version: 1.0 X-ClientProxiedBy: CO2PR06CA015.namprd06.prod.outlook.com (10.141.242.15) To CO2PR0701MB1064.namprd07.prod.outlook.com (10.160.8.143) X-MS-Office365-Filtering-Correlation-Id: e3832a37-b14b-438b-f794-08d404f66af0 X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB1064; 2:VxTP2qNEUtGtNKTyFqTXO9sS9kx0QJ7QSei0JjxRfubhcGI8qSsI6kGsa0OrzetTYcMtDflGQnWYBSxo8+iDGeLtJOv14HnAy3Lxe9m6MtKS/VBTmU3x6p9CZ8EedJnuNng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oO/XDYON5OKI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(102415321)(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:CO2PR0701MB1064; BCL:0; PCL:0; RULEID:; SRVR:CO2PR0701MB1064; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB1064; 4:AkTd3YId0ZjxarFoxWV11pN20xvnnDKYpVazV5aASSkkGxbGBgpTT07XvLZm0l3M0x90iylNtSFYkAJPCqW5GRVqvTiid15Q0Yj0vfF3P/n1r8/m7aARAqdO9Uc1KHMjz6UY4/c5M56aOq/QNFOwiAPj1y3LPv+qe8FYNlKprwc6WFFuck/5Ql7UhBIhoHH4kvvFcyv88dl+E7cLKFDDwK2/AWdm3v0G2KW1y7Ayy+ZuPFVIrPz3tHWMu0hfN48ii70LNdja/gbfjI/u0xE1V0HHifWUbaSRK8yj6/q9elEN6yldYn2cb+Lz/tILFelfjEVBHq4IZt9hiXClhW6Sb2LIO+zft0hnXvPL3c1odpZqJVXXR/0Zi8g34+PyhPeFyE68iP20KDmJOEelut1WnwkW0UWDtmmweI//7mpcs38= X-Forefront-PRVS: 01165471DB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(199003)(24454002)(189002)(377424004)(33646002)(189998001)(69596002)(81166006)(92566002)(81156014)(84326002)(305945005)(66066001)(8676002)(19580395003)(5890100001)(103116003)(586003)(110136003)(7736002)(106356001)(19580405001)(7846002)(36756003)(53416004)(68736007)(2950100002)(42186005)(512874002)(5660300001)(2906002)(6916009)(568964002)(105586002)(50986999)(4326007)(3846002)(4610100001)(97736004)(101416001)(50226002)(6116002)(76176999)(77096005)(2476003)(42882006)(6666003)(99106002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR0701MB1064; H:sellcey-lt.caveonetworks.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR0701MB1064; 23:IiKnLvWl1sWKi+demoEfCN6bUpQINdnf/c3QfSR?= =?us-ascii?Q?1sfZCri9uQcbatgTW34BmTHuFbwLlrp2+AQuWeni84U5m2lA3PJvOUtTYmj0?= =?us-ascii?Q?EXIPxizjVx/hXEyZu62cyNvXQTRRO67qPMgmTm2LYOHwIPO7iHzwr8faGKXX?= =?us-ascii?Q?tGIYDj+Akp80d634ujHtbvT1lINzIhbqrlU51WZ6hZ6pM37/IGpcXCbJ0p4W?= =?us-ascii?Q?jI1ESCqwIXwv0oXYrQqk24vXDyk3X7TOyO42RJeXuIqUUKAbO+wQyWs6kIpr?= =?us-ascii?Q?girJRBnRkkonpxOc/jLLTyROF6aBWy4PoroaWxIBV2pB7L8wBzT+e660558J?= =?us-ascii?Q?7PVZi9ZzudseGBJ+0HkqqUqHc+Ol1n0xUlUQ+0OafST9xubSi09W5RcxLSkw?= =?us-ascii?Q?g0E9CF2Xk3uJRAp50F4+/WoFAZuY+3CJ+RtppLYPUMxn5g6gWpXmngo/ssiq?= =?us-ascii?Q?zyhGbRAWQLzs8GyYZazasxBwoaZDeRPA9+qhyRNzT05EeQJqo8nhRI0PEu5K?= =?us-ascii?Q?55l/VG6pTkxCg0/rEdsL8h/BLByMPjMbteeFTj0PKunzIUrRH7XO7/+q31Wa?= =?us-ascii?Q?cCDPmMNov2ujF906YD4cgOH3ArZ91VKppdoE1/jXPy7XbHHE7ylijYL+uiq9?= =?us-ascii?Q?pOpjTCjMQO6GsPfo/sUPJbmP7o/EC0bYH7NOdgVGH7e3aUBliitz1tIHXGnC?= =?us-ascii?Q?OoFo93KFpVUV6dZGgVI61FthXA/ig4qWONcKhucvuCJ12VlBPAZNtWU17oP0?= =?us-ascii?Q?CRrrOAyorQmFSpluQ1DRRVnwosYmi4jGH6TW+cHtDladGGqdJ0/3IEf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T2VDa1/heNqLtR8JyIjtw==; 24:eoXnj7Vf8iQSIqm5woyatmSJbZIug108Fdhp7IxakuzGh6phxbekvgAvckV/uXnwfBGyT2GUFx15VE2OJ3lkDHCLj3GqDEvXnMaH2FLbR3w= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB1064; 7:0VEjI9daftyKOUsZT8hy0qsUIZYn7lOSWxUQAlFeDYGOix2ojoDwIqsRh7dScNIri6WKZYWVbhyido61aHVi1S91bow6R7Kn0hRKtU7LpNDJp90PLogeUtRpFUQH9dD07+kwB8qs+o73zjoZZtdhvWZmolBwSL/RX0eyLTLlJHanpotMxG8i27s+ma3Mi5qzSeOdtUzzIzv9hCWXgNydiz6T0Gr0KKTozf5iBuNJtqO/xsRTRCP7y/MCY3INzOgiZ+k9/82duN0Nh1REbJFbHegaVSJyoMPXkdPgOG8DnwSDxXggTi5IBCqDN+jV+Sk8UbnHjvDui6EbA6w8S84Yf6qgkvoAJwWCqug6aR6GK/M= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2016 21:06:16.7304 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR0701MB1064 On Fri, 2016-11-04 at 17:25 +0000, Joseph Myers wrote: > On Fri, 4 Nov 2016, Steve Ellcey wrote: > > > > > > > > > +  return test_cos (vint1, vllong1) > > > +  + test_fabs (vint1, vllong1) > > > +  + test_conj (vint1, vllong1) > > > +  + test_expm1 (vint1, vllong1) > > > +  + test_lrint (vint1, vllong1) > > > +  + test_ldexp (vint1, vllong1) > > > +  + test_atan2 (vint1, vllong1) > > > +  + test_remquo (vint1, vllong1) > > > +  + test_pow (vint1, vllong1) > > > +  + test_fma_1 (vint1, vllong1) > > > +  + test_fma_2 (vint1, vllong1) > > > +  + test_fma_3 (vint1, vllong1) > > > +  + test_fma_4 (vint1, vllong1); > You don't want to add up test results like that; you should OR them  > together instead, to avoid the potential for test results adding up > to 77  > and wrongly becoming UNSUPPORTED.  (In this case of course there > aren't  > enough tests to get to 77, but the principle applies that you should > avoid  > the test return being a count of something.) Here is a modified and retested patch. Steve Ellcey sellcey@caviumnetworks.com 2016-11-04  Steve Ellcey   * math/test-tgmath2.c: Split up test function. diff --git a/math/test-tgmath2.c b/math/test-tgmath2.c index b376fd6..b2cff6b 100644 --- a/math/test-tgmath2.c +++ b/math/test-tgmath2.c @@ -89,12 +89,6 @@ enum int count; int counts[Tlast][C_last]; -int -test (const int Vint4, const long long int Vllong4) -{ - int result = 0; - int quo = 0; - #define FAIL(str) \ do \ { \ @@ -138,6 +132,11 @@ test (const int Vint4, const long long int Vllong4) while (0) #define TEST(expr, type, fn) TEST2(expr, type, type, fn) +int +test_cos (const int Vint4, const long long int Vllong4) +{ + int result = 0; + TEST (cos (vfloat1), float, cos); TEST (cos (vdouble1), double, cos); TEST (cos (vldouble1), ldouble, cos); @@ -155,6 +154,14 @@ test (const int Vint4, const long long int Vllong4) TEST (cos (Vcdouble1), cdouble, cos); TEST (cos (Vcldouble1), cldouble, cos); + return result; +} + +int +test_fabs (const int Vint4, const long long int Vllong4) +{ + int result = 0; + TEST (fabs (vfloat1), float, fabs); TEST (fabs (vdouble1), double, fabs); TEST (fabs (vldouble1), ldouble, fabs); @@ -180,6 +187,13 @@ test (const int Vint4, const long long int Vllong4) TEST (fabs (Vcdouble1), double, cabs); TEST (fabs (Vcldouble1), ldouble, cabs); + return result; +} + +int +test_conj (const int Vint4, const long long int Vllong4) +{ + int result = 0; TEST (conj (vfloat1), cfloat, conj); TEST (conj (vdouble1), cdouble, conj); TEST (conj (vldouble1), cldouble, conj); @@ -197,6 +211,14 @@ test (const int Vint4, const long long int Vllong4) TEST (conj (Vcdouble1), cdouble, conj); TEST (conj (Vcldouble1), cldouble, conj); + return result; +} + +int +test_expm1 (const int Vint4, const long long int Vllong4) +{ + int result = 0; + TEST (expm1 (vfloat1), float, expm1); TEST (expm1 (vdouble1), double, expm1); TEST (expm1 (vldouble1), ldouble, expm1); @@ -208,6 +230,13 @@ test (const int Vint4, const long long int Vllong4) TEST (expm1 (Vint1), double, expm1); TEST (expm1 (Vllong1), double, expm1); + return result; +} + +int +test_lrint (const int Vint4, const long long int Vllong4) +{ + int result = 0; TEST2 (lrint (vfloat1), float, long int, lrint); TEST2 (lrint (vdouble1), double, long int, lrint); TEST2 (lrint (vldouble1), ldouble, long int, lrint); @@ -219,6 +248,14 @@ test (const int Vint4, const long long int Vllong4) TEST2 (lrint (Vint1), double, long int, lrint); TEST2 (lrint (Vllong1), double, long int, lrint); + return result; +} + +int +test_ldexp (const int Vint4, const long long int Vllong4) +{ + int result = 0; + TEST (ldexp (vfloat1, 6), float, ldexp); TEST (ldexp (vdouble1, 6), double, ldexp); TEST (ldexp (vldouble1, 6), ldouble, ldexp); @@ -230,6 +267,9 @@ test (const int Vint4, const long long int Vllong4) TEST (ldexp (Vint1, 6), double, ldexp); TEST (ldexp (Vllong1, 6), double, ldexp); + return result; +} + #define FIRST(x, y) (y, x) #define SECOND(x, y) (x, y) #define NON_LDBL_TEST(fn, argm, arg, type, fnt) \ @@ -307,25 +347,82 @@ test (const int Vint4, const long long int Vllong4) NON_LDBL_CTEST (fn, FIRST, Vcdouble2, cdouble, fnt); \ NON_LDBL_CTEST (fn, SECOND, Vcdouble2, cdouble, fnt); +int +test_atan2 (const int Vint4, const long long int Vllong4) +{ + int result = 0; + BINARY_TEST (atan2, atan2); + return result; +} + +int +test_remquo (const int Vint4, const long long int Vllong4) +{ + int result = 0; + int quo = 0; + #define my_remquo(x, y) remquo (x, y, &quo) BINARY_TEST (my_remquo, remquo); #undef my_remquo + return result; +} + +int +test_pow (const int Vint4, const long long int Vllong4) +{ + int result = 0; + BINARY_CTEST (pow, pow); - /* Testing all arguments of fma would be just too expensive, - so test just some. */ + return result; +} + +/* Testing all arguments of fma would be just too expensive, + so test just some. */ + +int +test_fma_1 (const int Vint4, const long long int Vllong4) +{ + int result = 0; + #define my_fma(x, y) fma (x, y, vfloat3) BINARY_TEST (my_fma, fma); #undef my_fma + + return result; +} + +int +test_fma_2 (const int Vint4, const long long int Vllong4) +{ + int result = 0; + #define my_fma(x, y) fma (x, vfloat3, y) BINARY_TEST (my_fma, fma); #undef my_fma + + return result; +} + +int +test_fma_3 (const int Vint4, const long long int Vllong4) +{ + int result = 0; + #define my_fma(x, y) fma (Vfloat3, x, y) BINARY_TEST (my_fma, fma); #undef my_fma + + return result; +} + +int +test_fma_4 (const int Vint4, const long long int Vllong4) +{ + int result = 0; TEST (fma (vdouble1, Vdouble2, vllong3), double, fma); TEST (fma (vint1, Vint2, vint3), double, fma); TEST (fma (Vldouble1, vldouble2, Vldouble3), ldouble, fma); @@ -337,7 +434,19 @@ test (const int Vint4, const long long int Vllong4) static int do_test (void) { - return test (vint1, vllong1); + return test_cos (vint1, vllong1) + | test_fabs (vint1, vllong1) + | test_conj (vint1, vllong1) + | test_expm1 (vint1, vllong1) + | test_lrint (vint1, vllong1) + | test_ldexp (vint1, vllong1) + | test_atan2 (vint1, vllong1) + | test_remquo (vint1, vllong1) + | test_pow (vint1, vllong1) + | test_fma_1 (vint1, vllong1) + | test_fma_2 (vint1, vllong1) + | test_fma_3 (vint1, vllong1) + | test_fma_4 (vint1, vllong1); } /* Now generate the three functions. */