public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/107357] New: [RISC-V]RVV  broken with zve32x/f
@ 2022-10-22 11:20 jiawei at iscas dot ac.cn
  2022-10-26  9:05 ` [Bug target/107357] " cvs-commit at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jiawei at iscas dot ac.cn @ 2022-10-22 11:20 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107357
           Summary: [RISC-V]RVV  broken with zve32x/f
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jiawei at iscas dot ac.cn
  Target Milestone: ---

When build target riscv with arch "rv64gc_zve32x" or "rv64gc_zve32f" it will
got an error:

/root/riscv-gnu-toolchain/gcc/gcc/simplify-rtx.cc:8369:
test_vector_subregs_modes: FAIL: ASSERT_TRUE ((outer_x != (rtx) 0))
cc1: internal compiler error: in fail, at selftest.cc:47
0x1a9f331 selftest::fail(selftest::location const&, char const*)
        /root/riscv-gnu-toolchain/gcc/gcc/selftest.cc:47
0xf7e430 test_vector_subregs_modes
        /root/riscv-gnu-toolchain/gcc/gcc/simplify-rtx.cc:8369
0xf7e557 test_vector_subregs_repeating
        /root/riscv-gnu-toolchain/gcc/gcc/simplify-rtx.cc:8417
0xf84a66 test_vector_subregs
        /root/riscv-gnu-toolchain/gcc/gcc/simplify-rtx.cc:8466
0xf84a66 test_vector_ops
        /root/riscv-gnu-toolchain/gcc/gcc/simplify-rtx.cc:8487
0xf84a66 selftest::simplify_rtx_cc_tests()
        /root/riscv-gnu-toolchain/gcc/gcc/simplify-rtx.cc:8547
0x19b842c selftest::run_tests()
        /root/riscv-gnu-toolchain/gcc/gcc/selftest-run-tests.cc:115
0xfa7add toplev::run_self_tests()
        /root/riscv-gnu-toolchain/gcc/gcc/toplev.cc:2184

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

* [Bug target/107357] [RISC-V]RVV  broken with zve32x/f
  2022-10-22 11:20 [Bug other/107357] New: [RISC-V]RVV broken with zve32x/f jiawei at iscas dot ac.cn
@ 2022-10-26  9:05 ` cvs-commit at gcc dot gnu.org
  2022-10-27  4:57 ` jiawei at iscas dot ac.cn
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-10-26  9:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kito Cheng <kito@gcc.gnu.org>:

https://gcc.gnu.org/g:7e924ba3474b96a6c0b87c38cc4fca7af8d3910c

commit r13-3505-g7e924ba3474b96a6c0b87c38cc4fca7af8d3910c
Author: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
Date:   Tue Oct 25 11:22:38 2022 +0800

    RISC-V: ADJUST_NUNITS according to -march.

    This patch fixed PR107357:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107357

    gcc/ChangeLog:

            PR target/107357
            * config/riscv/riscv-modes.def (VECTOR_BOOL_MODE): Set to minimum
size.
            (ADJUST_NUNITS): Adjust according to -march.
            (ADJUST_BYTESIZE): Ditto.
            * config/riscv/riscv-protos.h (riscv_v_ext_enabled_vector_mode_p):
            Remove.
            (riscv_v_ext_vector_mode_p): Change function implementation.
            * config/riscv/riscv-vector-builtins.cc
(rvv_switcher::rvv_switcher):
            Change to riscv_v_ext_vector_mode_p.
            (register_builtin_type): Ditto.
            * config/riscv/riscv.cc (riscv_v_ext_vector_mode_p): Change to
enabled
            modes.
            (ENTRY): Ditto.
            (riscv_v_ext_enabled_vector_mode_p): Remove.
            (riscv_v_adjust_nunits): New function.
            (riscv_vector_mode_supported_p): Use riscv_v_ext_vector_mode_p
instead.
            * config/riscv/riscv.h (riscv_v_adjust_nunits): New function.

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

* [Bug target/107357] [RISC-V]RVV  broken with zve32x/f
  2022-10-22 11:20 [Bug other/107357] New: [RISC-V]RVV broken with zve32x/f jiawei at iscas dot ac.cn
  2022-10-26  9:05 ` [Bug target/107357] " cvs-commit at gcc dot gnu.org
@ 2022-10-27  4:57 ` jiawei at iscas dot ac.cn
  2022-10-27  4:58 ` jiawei at iscas dot ac.cn
  2022-10-27  4:59 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jiawei at iscas dot ac.cn @ 2022-10-27  4:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from jiawei <jiawei at iscas dot ac.cn> ---
Verified, Thanks!

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

* [Bug target/107357] [RISC-V]RVV  broken with zve32x/f
  2022-10-22 11:20 [Bug other/107357] New: [RISC-V]RVV broken with zve32x/f jiawei at iscas dot ac.cn
  2022-10-26  9:05 ` [Bug target/107357] " cvs-commit at gcc dot gnu.org
  2022-10-27  4:57 ` jiawei at iscas dot ac.cn
@ 2022-10-27  4:58 ` jiawei at iscas dot ac.cn
  2022-10-27  4:59 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jiawei at iscas dot ac.cn @ 2022-10-27  4:58 UTC (permalink / raw)
  To: gcc-bugs

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

jiawei <jiawei at iscas dot ac.cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #3 from jiawei <jiawei at iscas dot ac.cn> ---
Fixed.

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

* [Bug target/107357] [RISC-V]RVV  broken with zve32x/f
  2022-10-22 11:20 [Bug other/107357] New: [RISC-V]RVV broken with zve32x/f jiawei at iscas dot ac.cn
                   ` (2 preceding siblings ...)
  2022-10-27  4:58 ` jiawei at iscas dot ac.cn
@ 2022-10-27  4:59 ` pinskia at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-10-27  4:59 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.0

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

end of thread, other threads:[~2022-10-27  4:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-22 11:20 [Bug other/107357] New: [RISC-V]RVV broken with zve32x/f jiawei at iscas dot ac.cn
2022-10-26  9:05 ` [Bug target/107357] " cvs-commit at gcc dot gnu.org
2022-10-27  4:57 ` jiawei at iscas dot ac.cn
2022-10-27  4:58 ` jiawei at iscas dot ac.cn
2022-10-27  4:59 ` pinskia 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).