Re: [PATCH v5 7/7] test_bits: add tests for BIT_U*()

Andy Shevchenko
2025-03-06T17:55:11Z

On Fri, Mar 07, 2025 at 01:08:15AM +0900, Vincent Mailhol wrote:
> On 06/03/2025 at 22:11, Andy Shevchenko wrote:
> > On Thu, Mar 06, 2025 at 08:29:58PM +0900, Vincent Mailhol via B4 Relay wrote:
> >> From: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
> >>
> >> Add some additional tests in lib/test_bits.c to cover the expected
> >> results of the fixed type BIT_U*() macros.
> >
> > Still would be good to have a small assembly test case for GENMASK*() as they
> > went split and it will be a good regression test in case somebody decides to
> > unify both without much thinking..
>
> Let me confirm that I correctly understood your ask. Would something
> like this meet your expectations?

I believe it should be written in asm.

--
With Best Regards,
Andy Shevchenko