On 4/12/23 10:58, Jakub Jelinek wrote:
On Wed, Apr 12, 2023 at 12:02:12PM +0200, Jakub Jelinek via Gcc-patches wrote:
I've tried the pr108947.c testcase, but I see no differences in the assembly
before/after the patch (but dunno if I'm using the right options).
The pr109040.c testcase from the patch I don't see the expected zero
extension without the patch and do see it with it.

Seems my cross defaulted to 32-bit compilation, reproduced it with
additional -mabi=lp64 -march=rv64gv even on the pr108947.c test.
So, let's include that test in the patch too:

2023-04-12  Jeff Law  <j...@ventanamicro.com>
            Jakub Jelinek  <ja...@redhat.com>

        PR target/108947
        PR target/109040
        * combine.cc (simplify_and_const_int_1): Compute nonzero_bits in
        word_mode rather than mode if WORD_REGISTER_OPERATIONS and mode is
        smaller than word_mode.
        * simplify-rtx.cc (simplify_context::simplify_binary_operation_1)
        <case AND>: Likewise.

        * gcc.dg/pr108947.c: New test.
        * gcc.c-torture/execute/pr109040.c: New test.
Bootstrap of the v3 patch has completed. Regression testing is still spinning. It should be done and waiting for me when I wake up in the morning.

jeff-

Reply via email to