From patchwork Fri Dec 30 04:24:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 709644 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tqYK363pmz9sCM for ; Fri, 30 Dec 2016 15:24:36 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="iVm/PncH"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=NZvNPPvXDFyZV7rqT0zOJellBvIyVT0x8FVR4ZP0YGB1kf KqODUSMXOlwTGrzOpHXioTH6yrNDZI5+TqtJF/CdcFs+g2wHJVhpwboTAuxhqGD3 tuhGre87ixqDS2xC5WgghKjUWmneHiYo9Ua+6v0B6oP5zwf9sL/66uVDY9ykA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=FExF0bilRlZ3ayCQ4HtxVq+6z+M=; b=iVm/PncHfTsVP0gmd8Gh dVSI/dN4sUBWGXslGTXKCrcSit7nKw8+3CMAqHjp97uts2g4cfrPezXSZSqvWnFg w1kbHjH3kElJUeV3QzU2HLJxVCiOj6PJC1HF7UwS7Hyi040OMwucj8DFgizLP4sw EUdJrLbZYCT2bpeyUHEOps4= Received: (qmail 63799 invoked by alias); 30 Dec 2016 04:24:26 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 63787 invoked by uid 89); 30 Dec 2016 04:24:25 -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, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=AARCH64, Hx-languages-length:1209, CN99xx, cn99xx X-HELO: mail-yw0-f173.google.com Received: from mail-yw0-f173.google.com (HELO mail-yw0-f173.google.com) (209.85.161.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 30 Dec 2016 04:24:24 +0000 Received: by mail-yw0-f173.google.com with SMTP id t125so219270673ywc.1 for ; Thu, 29 Dec 2016 20:24:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=TU/43giLrXICeDHAx40usjR+6jXlgEWyQNkVbcQlP7A=; b=JWPGW2G+611AobhgF+RqoSvRbwmzgdglwNYkrE/Vh+jXvrJ0ACdQ+5P9Mxu71mdzUk ZKi26mZfRatHiLwps+DJguVlwO2zsoPa+m8M/1xJczvJ9y2zKmd7AHskST2jOLS2Ry8F mCPy/ixGT5q7mxk4bickUeoxerYc1GEH3FFt4kSmwdCgSQ5Li8t7AqrQFq4mxzCZTthq 2GqqchOxwwPU64aVtvK0KxsJYnmV6EFZQceuRpcl0x9zHXE7Gmab+TlfK6XafqdAsNEI lBeKKXThTwGqWiui8A/MpfLGbefeMOyTHuXXStE50DFmKE8rJMIq6Q4UTkEb6TjcxmDe s2cg== X-Gm-Message-State: AIkVDXLHscDVqIpAZnBoru09879pfeNr9sR53BsBo9e3ME7JSMFddVkoQjcw8T+wi1ej5yy2HNo7ePjBiOoYjQ== X-Received: by 10.129.95.11 with SMTP id t11mr41210542ywb.128.1483071862212; Thu, 29 Dec 2016 20:24:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.42.65 with HTTP; Thu, 29 Dec 2016 20:24:21 -0800 (PST) From: Andrew Pinski Date: Thu, 29 Dec 2016 20:24:21 -0800 Message-ID: Subject: [Committed] Lower iterator count on gcc.dg/atomic/c11-atomic-exec-5.c for AARCH64 To: GCC Patches X-IsSubscribed: yes Since AARCH64 does not have a native 128bit atomics, this testcase can take a long time with the default iteration count on a "fast" multi-core machine. This is because the thread which incrementing the counter is not able to acquire the mutex before the other thread has already acquired it. I had put the analysis in PR 59305 also if someone wants to improve libatomic. So this patch decreases the count down to 100 which should be enough time spent in the atomic loop to catch problems. Committed after a bootstrap/test on aarch64-linux-gnu (both ThunderX - CN88xx and ThunderX 2 CN99xx). Thanks, Andrew Pinski ChangeLog: * gcc.dg/atomic/c11-atomic-exec-5.c: Lower ITER_COUNT to 100 for AARCH64. Index: testsuite/gcc.dg/atomic/c11-atomic-exec-5.c =================================================================== --- testsuite/gcc.dg/atomic/c11-atomic-exec-5.c (revision 243959) +++ testsuite/gcc.dg/atomic/c11-atomic-exec-5.c (working copy) @@ -24,7 +24,7 @@ | FE_OVERFLOW \ | FE_UNDERFLOW) -#if defined __alpha__ +#if defined __alpha__ || defined __aarch64__ #define ITER_COUNT 100 #else #define ITER_COUNT 10000