Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765709AbXHWUll (ORCPT ); Thu, 23 Aug 2007 16:41:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1765475AbXHWUl3 (ORCPT ); Thu, 23 Aug 2007 16:41:29 -0400 Received: from turing-police.cc.vt.edu ([128.173.14.107]:52156 "EHLO turing-police.cc.vt.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765379AbXHWUl2 (ORCPT ); Thu, 23 Aug 2007 16:41:28 -0400 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Segher Boessenkool Cc: Linus Torvalds , Hirokazu Takata , "Robert P. J. Day" , paulmck@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, "Luck, Tony" , akpm@linux-foundation.org, linux-arch@vger.kernel.org, Chris Snook , Chris Friesen Subject: Re: [PATCH 11/23] make atomic_read() and atomic_set() behavior consistent on m32r In-Reply-To: Your message of "Thu, 23 Aug 2007 21:29:41 +0200." From: Valdis.Kletnieks@vt.edu References: <46C03885.7000109@redhat.com> <20070813112452.GK24018@shell.boston.redhat.com> <46CC42EF.3030602@redhat.com> <8fc86c23579e12b012891d6e69b1b107@kernel.crashing.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1187901648_3088P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Thu, 23 Aug 2007 16:40:48 -0400 Message-ID: <20267.1187901648@turing-police.cc.vt.edu> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 885 Lines: 33 --==_Exmh_1187901648_3088P Content-Type: text/plain; charset=us-ascii On Thu, 23 Aug 2007 21:29:41 +0200, Segher Boessenkool said: > int f(atomic_t *x) > { > return atomic_read(x) + atomic_read(x); > } > ld r0,@r0 > slli r0,#1 > jmp lr Looks like peephole optimization at work. --==_Exmh_1187901648_3088P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFGzfDQcC3lWbTT17ARAiesAKCt9DXTeV4fcq6jVhYUSt1B15F98gCfV5ig WNElhd+utJOGg504suZT3t4= =aRpd -----END PGP SIGNATURE----- --==_Exmh_1187901648_3088P-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/