diff mbox series

rs6000: Correct the function code for _AMO_LD_DEC_BOUNDED

Message ID 69b9750f-1e64-472f-9865-f8fdaf0bb5cc@linux.ibm.com
State New
Headers show
Series rs6000: Correct the function code for _AMO_LD_DEC_BOUNDED | expand

Commit Message

jeevitha Oct. 14, 2024, 11:56 a.m. UTC
Hi All,

Corrected the function code for the Atomic Memory Operation "Fetch and Decrement
Bounded", changing it from 0x1A to 0x1C.

2024-10-14 Jeevitha Palanisamy <jeevitha@linux.ibm.com>

gcc/
	* config/rs6000/amo.h (enum _AMO_LD): Correct the function code for
	_AMO_LD_DEC_BOUNDED.

Comments

Segher Boessenkool Oct. 15, 2024, 8:13 p.m. UTC | #1
Hi!

On Mon, Oct 14, 2024 at 05:26:51PM +0530, jeevitha wrote:
> Corrected the function code for the Atomic Memory Operation "Fetch and Decrement
> Bounded", changing it from 0x1A to 0x1C.

... which is the correct value.  :-)

> 2024-10-14 Jeevitha Palanisamy <jeevitha@linux.ibm.com>
> 
> gcc/
> 	* config/rs6000/amo.h (enum _AMO_LD): Correct the function code for
> 	_AMO_LD_DEC_BOUNDED.
> 
> diff --git a/gcc/config/rs6000/amo.h b/gcc/config/rs6000/amo.h
> index 6b9e4e088b9..1303c9d9dab 100644
> --- a/gcc/config/rs6000/amo.h
> +++ b/gcc/config/rs6000/amo.h
> @@ -46,7 +46,7 @@ enum _AMO_LD {
>    _AMO_LD_CS_NE		= 0x10,		/* Compare and Swap Not Equal.  */
>    _AMO_LD_INC_BOUNDED	= 0x18,		/* Fetch and Increment Bounded.  */
>    _AMO_LD_INC_EQUAL	= 0x19,		/* Fetch and Increment Equal.  */
> -  _AMO_LD_DEC_BOUNDED	= 0x1A		/* Fetch and Decrement Bounded.  */
> +  _AMO_LD_DEC_BOUNDED	= 0x1C		/* Fetch and Decrement Bounded.  */
>  };
>  
>  /* Implementation of the simple LWAT/LDAT operations that take one register and

Thank you!  Okay for trunk; also okay for all backports (which backports
do you want?)


Segher
diff mbox series

Patch

diff --git a/gcc/config/rs6000/amo.h b/gcc/config/rs6000/amo.h
index 6b9e4e088b9..1303c9d9dab 100644
--- a/gcc/config/rs6000/amo.h
+++ b/gcc/config/rs6000/amo.h
@@ -46,7 +46,7 @@  enum _AMO_LD {
   _AMO_LD_CS_NE		= 0x10,		/* Compare and Swap Not Equal.  */
   _AMO_LD_INC_BOUNDED	= 0x18,		/* Fetch and Increment Bounded.  */
   _AMO_LD_INC_EQUAL	= 0x19,		/* Fetch and Increment Equal.  */
-  _AMO_LD_DEC_BOUNDED	= 0x1A		/* Fetch and Decrement Bounded.  */
+  _AMO_LD_DEC_BOUNDED	= 0x1C		/* Fetch and Decrement Bounded.  */
 };
 
 /* Implementation of the simple LWAT/LDAT operations that take one register and