Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4102286imu; Fri, 30 Nov 2018 11:01:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/UN05nYKaotcwDygVLB/orCtlO1DC769ptdkB/wXzew4iHLApLx7xy58Me1GzFK3PbPI6y7 X-Received: by 2002:a17:902:162:: with SMTP id 89-v6mr6754486plb.293.1543604505371; Fri, 30 Nov 2018 11:01:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543604505; cv=none; d=google.com; s=arc-20160816; b=dc+cog9dpUMmY98SA+AHyo+VbcqVcX53bnbJNaekx724FYCulYOHMekfcG+VvgKK7Z Fn/haAjZqB8XKin0DiqZF0wZrZgGeUhKx7TcBvOWI4oBTjirC+sjUzBCv9I8cnFMfls3 jGAhrwPUbRB2w/2sgbiOFIvqWO6HdUKyqa3shfCGSZl8k2pl8Ew9yTkpZnkUQQtsnL96 ulN6C2i5oRIiJXpcIEtoQlM/IugzBtXl9VIHglD2CeTYCWWa+uBcZQ3pUq1eiLNXYX2H W3S9trMtb1rIOJXgLnBhODMe2EAmRiBKQd7DZaPhwl80xTACB54VTpDrfE9cWYNrNoi/ jhMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=mhIv6aro5uYNvZcfRUktwqyyAk3upyCE2TQlFkRY9yI=; b=XQQFyxS3qL77bNy+70M3fEtGV+Q1tJlmaByLmafv30vU1WR55uJI5lX6Ytz1ZyR0wn 8XYxOpswUZQejrEc+pFVlW6LuP4yvht+sIhK9+iwbwkpyAza9HjAVsICfk1o8r1pS5DQ fHlB+JWASk6VA1k0crH5pKWWUaDlC4YWc3CBQqlsKo2HG4qFHmXfFXmNSAG9eSNOa1W7 eQWZmzETXJ6dIE4ib83S6vDhPwhbS/cJ6IkzKlWcaF9kCESdOpJ2BerCwGs7XQPu2sQh zo5ErpvmFgiXhcZ/3aaZkZ50mvZNct+9t/fDgKv+vN9bpRRlSs/wxiC41HhSLzb35La2 pmeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=RFVadNQT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m198si5345718pga.98.2018.11.30.11.01.30; Fri, 30 Nov 2018 11:01:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=RFVadNQT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726808AbeLAGKV (ORCPT + 99 others); Sat, 1 Dec 2018 01:10:21 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111]:52602 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725993AbeLAGKV (ORCPT ); Sat, 1 Dec 2018 01:10:21 -0500 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 168D310C075A; Fri, 30 Nov 2018 11:00:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1543604407; bh=mhIv6aro5uYNvZcfRUktwqyyAk3upyCE2TQlFkRY9yI=; h=From:To:CC:Subject:Date:References:From; b=RFVadNQTbJYD7SILq6j7brN2ZZrVZsmU16y9TIF2OLTTCqaMlXJhhIBg1wGbqSuEv uEaUyH5AKYL+C5NLDx3W7rUzPSDI52GnIDBRcaA+IugGp//+fyabDNfKga8c/y7EQd gKXE7Dchr+OhEXOyvaWh6nJKThk+KitOABiBMTA1KiK0+6r8szy8eTJvpP395qTvXX DkJIxfWIGpYpiEl+yPmpupym4hQhnLsYl+Ahf1Ta2ZeDeNfgXavmAuWXovjrRZ/Nor hJHlzw8fs8kC+F+UK+YmSvgBrSURjaxRlT6Poy10McGjYsuqmtyVz80ivgCLngjFjT L8amMZmVLLmWg== Received: from us01wehtc1.internal.synopsys.com (us01wehtc1-vip.internal.synopsys.com [10.12.239.236]) by mailhost.synopsys.com (Postfix) with ESMTP id CA07E5BB9; Fri, 30 Nov 2018 11:00:06 -0800 (PST) Received: from US01WEMBX2.internal.synopsys.com ([fe80::e4b6:5520:9c0d:250b]) by us01wehtc1.internal.synopsys.com ([::1]) with mapi id 14.03.0415.000; Fri, 30 Nov 2018 11:00:06 -0800 From: Vineet Gupta To: David Laight , 'Arnd Bergmann' , "jose.abreu@synopsys.com" CC: "open list:SYNOPSYS ARC ARCHITECTURE" , Linux Kernel Mailing List , Vineet Gupta , "alexey.brodkin@synopsys.com" , Joao Pinto , Vitor Soares Subject: Re: [PATCH v2] ARC: io.h: Implement reads{x}()/writes{x}() Thread-Topic: [PATCH v2] ARC: io.h: Implement reads{x}()/writes{x}() Thread-Index: AQHUh+/oo0RKKbidaU63fw0ncGEK7A== Date: Fri, 30 Nov 2018 19:00:05 +0000 Message-ID: References: <19fb2e394afcb073bbc109e432417fbbc03323f6.1543499759.git.joabreu@synopsys.com> <89122bd8-bca2-2ae1-0dd0-160abbebcace@synopsys.com> <57437493-31bb-eced-032c-1f54470b030e@synopsys.com> <3afe0e1bbf2d42d3bb178ec789553c28@AcuMS.aculab.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.144.199.106] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/30/18 5:57 AM, David Laight wrote:=0A= > There're even identical opcodes...=0A= > The barrier() (etc) in the asm output probably stopped the optimisation.= =0A= >=0A= > It also seems to have used a different type of loop to the=0A= > other example, probably less efficient.=0A= > (Not that I'm an expert on ARC opcodes.)=0A= =0A= The difference is due to ISA and ensuing ARC gcc backends. ARCompact based = cores=0A= don't support unaligned access and the loop there was ZOL (Zero delay loop)= . In=0A= ARCv2 based cores, the gcc backend has been tweaked to generate fewer ZOLs = hence=0A= you see the more canonical tst and branch style loop.=0A= =0A= -Vineet=0A=