public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug regression/106888] New: [RISCV] Excess andi instructions are generated  in gcc.dg/pr90838.c
@ 2022-09-08  9:36 shihua at iscas dot ac.cn
  2022-09-08  9:46 ` [Bug tree-optimization/106888] [RISCV] Negative optimization that excess " shihua at iscas dot ac.cn
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: shihua at iscas dot ac.cn @ 2022-09-08  9:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106888

            Bug ID: 106888
           Summary: [RISCV] Excess andi instructions are generated  in
                    gcc.dg/pr90838.c
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: regression
          Assignee: unassigned at gcc dot gnu.org
          Reporter: shihua at iscas dot ac.cn
  Target Milestone: ---

After this patch(
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=c23a9c87cc62bd177fd0d4db6ad34b34e1b9a31f),gcc.dg/pr90838.c
failed.

Before:


        .attribute arch, "rv64i2p0_m2p0_a2p0_f2p0_d2p0_c2p0_zbb1p0"
        .attribute unaligned_access, 0
        .attribute stack_align, 16
        .text

        .align  1
        .globl  ctz2
        .type   ctz2, @function
ctz2:
        ctzw    a0,a0
        ret
        .size   ctz2, .-ctz2
        .align  1
        .globl  ctz3
        .type   ctz3, @function
ctz3:
        ctzw    a0,a0
        ret
        .size   ctz3, .-ctz3


After:

        .attribute arch, "rv64i2p0_m2p0_a2p0_f2p0_d2p0_c2p0_zbb1p0"
        .attribute unaligned_access, 0
        .attribute stack_align, 16
        .text
        .align  1
        .globl  ctz1
        .type   ctz1, @function
ctz2:
        ctzw    a0,a0
        andi    a0,a0,127
        ret
        .size   ctz2, .-ctz2
        .align  1
        .globl  ctz3
        .type   ctz3, @function
ctz3:
        ctzw    a0,a0
        andi    a0,a0,127
        ret
        .size   ctz3, .-ctz3

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-05-20  3:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-08  9:36 [Bug regression/106888] New: [RISCV] Excess andi instructions are generated in gcc.dg/pr90838.c shihua at iscas dot ac.cn
2022-09-08  9:46 ` [Bug tree-optimization/106888] [RISCV] Negative optimization that excess " shihua at iscas dot ac.cn
2023-04-20 19:00 ` pinskia at gcc dot gnu.org
2023-04-20 23:06 ` vineetg at gcc dot gnu.org
2023-04-20 23:44 ` law at gcc dot gnu.org
2023-04-21 17:27 ` roger at nextmovesoftware dot com
2023-04-21 17:38 ` law at gcc dot gnu.org
2023-04-21 21:18 ` vineetg at gcc dot gnu.org
2023-04-21 22:07 ` law at gcc dot gnu.org
2023-04-22  0:08 ` vineetg at gcc dot gnu.org
2023-04-22  0:16 ` law at gcc dot gnu.org
2023-05-20  2:55 ` cvs-commit at gcc dot gnu.org
2023-05-20  3:03 ` law at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).