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

            Bug ID: 117603
           Summary: RISC-V: testsuite: Architecture string mutation is not
                    robust
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dimitar at gcc dot gnu.org
  Target Milestone: ---

The DejaGnu routine "add_options_for_riscv_v" erroneously strips the "e"
architecture modifier when it mutates the architecture string to add vector
extensions.  This results in spurious test case failures like:
  FAIL: gcc.dg/vect/complex/bb-slp-complex-add-pattern-unsigned-long.c (test
for excess errors)
  Excess errors:
  xgcc: error: '-march=rv32cv': first ISA subset must be 'e', 'i' or 'g'

GCC has been configured for RV32EC with:
  ./configure                                     \
      --target=riscv32-none-elf                   \
      --with-multilib-generator="rv32ec-ilp32e--" \
      --with-abi=ilp32e                           \
      --with-arch=rv32ec

Reply via email to