Re: [PATCH 1/2] __builtin_bswapXX: improve docs and tests

2025-03-11 Thread Richard Sandiford
Richard Sandiford writes: > Oscar Gustafsson writes: >> ChangeLog: >> >> * doc/extend.texi: Improve example for __builtin_swap16. >> >> --- >> >> diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi >> index ec9bb59900c..83f6e45170b 100644 >> --- a/gcc/doc/extend.texi >> +++ b/gcc/doc/exten

Re: [PATCH 1/2] __builtin_bswapXX: improve docs and tests

2025-03-04 Thread Richard Sandiford
Oscar Gustafsson writes: > ChangeLog: > > * doc/extend.texi: Improve example for __builtin_swap16. > > --- > > diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi > index ec9bb59900c..83f6e45170b 100644 > --- a/gcc/doc/extend.texi > +++ b/gcc/doc/extend.texi > @@ -16338,7 +16338,7 @@ Return

[PATCH 1/2] __builtin_bswapXX: improve docs and tests

2025-03-04 Thread Oscar Gustafsson
gcc/testsuite/ChangeLog * gcc.dg/builtin-bswap-5.c: improve test vector to avoid nibble swaps passing --- diff --git a/gcc/testsuite/gcc.dg/builtin-bswap-5.c b/gcc/testsuite/gcc.dg/builtin-bswap-5.c index b29931e4e10..2ba6c31194f 100644 --- a/gcc/testsuite/gcc.dg/builtin-bswap-5.c +++ b/gcc/

[PATCH 1/2] __builtin_bswapXX: improve docs and tests

2025-03-04 Thread Oscar Gustafsson
ChangeLog: * doc/extend.texi: Improve example for __builtin_swap16. --- diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index ec9bb59900c..83f6e45170b 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -16338,7 +16338,7 @@ Returns the first argument raised to the power of t