From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1BCCF13C3E6 for ; Thu, 18 Jul 2024 16:06:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721318772; cv=none; b=IA1BtM7djAqIRrWBz1sbtrsh9Qpua+ewDbVZHn6C2XsNp9Bzf0UF4+Hnb41pehxGIaN/4wW9TFJgax6SNGgTenFSwF1YH+yuMhdoM0o0xY2NfQN+1njjgodOZGdb45f/MM7nqqJdUI3aViibQzmKhnhV4sTteAIcZscKVKfFnE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721318772; c=relaxed/simple; bh=44n4cYZ0Q1E+j8qZTmA1s4xcBXqhsiYahsmpu+O2AOo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ngWwzHziTIpqRCDrx/MniZFRxnzOIyX7qi2XUxcknZno4fnnWBJnBLCdIut0y8vsBev6rmL78AbPXE7I7W1nv6IBHbpPWJSLuiPdHc8yLmcQPL8Po1bwXXjN4nb8jbOFOOGhemlqVFlTRAYNA+Z5YlbwkYDC+ONp1Ac8NTOmt8k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=WHfyZFP6; arc=none smtp.client-ip=209.85.166.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="WHfyZFP6" Received: by mail-il1-f170.google.com with SMTP id e9e14a558f8ab-3970f9331deso2429585ab.2 for ; Thu, 18 Jul 2024 09:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1721318770; x=1721923570; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=viUABkBmfTgkqCa/7vhlbq4p5oq9ftTQ0S5SnBOY0Nk=; b=WHfyZFP64SaNudMQ4iTCht83En/c9xFwE7WseUsES7dHvk+J1Eo8zrp5kPDICxbTKJ tL1CxdMO2l0GUb56AdvTGTisCyo7qoWYz/wFoH38kpm8ecuQI2dRIjuGDG9RtpTl8Sdr 46SSbr1/5JbmLSzP4bXUhjwYxrLbVh3CXGbi2VvApTUBLb9ICyaEesHmHV1E7WpFRJVB 3KplswpqsksQoO/4gFDBTiyFMPyRZTIZn3XbfNF2rLYbvR75kgpBSVfq8Hjov0ompmS2 kvknIrFw1Idx710SVRlUSLU/2jmnqTfo/6+f6bNN44C0y15k9mkLy72q2X02BvGKu8t4 e1Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721318770; x=1721923570; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=viUABkBmfTgkqCa/7vhlbq4p5oq9ftTQ0S5SnBOY0Nk=; b=bwEdZVKm9GU+LepfuSkMHWjElvq2wJS2I7uN1Hl0FPB7grXEp5mB6xsP3mjhIfkhDp nNNn2Ie1bP9J/rjMgxaS/4eoyvHAAYhMAXqyeMoOaskcPFGA5N12nlDTJucViYOE2ELI NJdUXFxY95LAOjpSOMuVgBO9oXnXgqtF/5o+R7ee5990f1iAi0PCHx03U4oZ40ON7ElN a8LQd969gE/kh5+BsO30TaZeCTFqw4+Iz0reNGlRIjB+7zzSiSvQARhkVQWm9EQtYF3H 5S4TPfriLvuzywNRTN7tRbEuUDBtD7+tUiomFf+4uWAUj35VVFr/402F3T8Ic5O/pxun TtBA== X-Forwarded-Encrypted: i=1; AJvYcCX8C14Zg3Tyt1yKK2MT8ZXRDdHWahrThuH7UWfkiybRaV04qmgbzAv2y8MoF6ILW1MGYJjN+M3LFTkv7+mRzUnRlh3uzYuS/cL5 X-Gm-Message-State: AOJu0Yy0ycepfJTX1I0O62hKLzB0X93KUtD9Fk1UQIYL2WqRry6z7ZEb sP3Vp0VLlGlB19nWZrFBh8jtopthsCxGRe87pnMr8moTuNnDK9bj1WiLpxWSYQE= X-Google-Smtp-Source: AGHT+IFm1MwbtKKQ42pdLPFRWB3QURVJC7xbjJO/hmp2xPNIG+w6wDszyBZqmIMxtUybkHCFqiqGvQ== X-Received: by 2002:a05:6e02:1e0e:b0:376:4049:69d2 with SMTP id e9e14a558f8ab-3955542a2f1mr76353275ab.6.1721318769739; Thu, 18 Jul 2024 09:06:09 -0700 (PDT) Received: from localhost ([140.82.166.162]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3950b6ad778sm17393005ab.40.2024.07.18.09.06.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jul 2024 09:06:08 -0700 (PDT) Date: Thu, 18 Jul 2024 11:06:06 -0500 From: Andrew Jones To: Alexandre Ghiti Cc: Alexandre Ghiti , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Andrea Parri , Nathan Chancellor , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Arnd Bergmann , Leonardo Bras , Guo Ren , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arch@vger.kernel.org Subject: Re: [PATCH v3 03/11] riscv: Implement cmpxchg8/16() using Zabha Message-ID: <20240718-d583846f09bc103b7eab6b4e@orel> References: <20240717061957.140712-1-alexghiti@rivosinc.com> <20240717061957.140712-4-alexghiti@rivosinc.com> <20240717-e7104dac172d9f2cbc25d9c6@orel> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Jul 18, 2024 at 02:50:28PM GMT, Alexandre Ghiti wrote: ... > > > + \ > > > + __asm__ __volatile__ ( \ > > > + prepend \ > > > + " amocas" cas_sfx " %0, %z2, %1\n" \ > > > + append \ > > > + : "+&r" (r), "+A" (*(p)) \ > > > + : "rJ" (n) \ > > > + : "memory"); \ > > > + goto end; \ > > > + } \ > > > + \ > > > +no_zabha_zacas:; \ > > unnecessary ; > > > Actually it is, it fixes a warning encountered on llvm: > https://lore.kernel.org/linux-riscv/20240528193110.GA2196855@thelio-3990X/ I'm not complaining about the 'end:' label. That one we need ';' because there's no following statement and labels must be followed by a statement. But no_zabha_zacas always has following statements. Thanks, drew