[PATCH] RISC-V: Fix fmv.x testcase for non-default --with-arch

Project / Subsystem

binutils / risc-v

Date

2026-09-22

Proposer

"Ethan Y. C. Liang" <ycl669@andestech.com>

Source type

public_inbox

Consensus

Proposed

Sentiment

7/10

Technical tradeoffs

  • • Hardcoding `-march=rv32i` makes the testcase less flexible but more robust against build configuration variations.
  • • Ensuring test isolation from build-time architecture flags improves test reliability.

All attributes

project
binutils
subsystem
risc-v
patch_id
—
discussion_id
20260922025915.1361630-1-ycl669@andestech.com
source_type
public_inbox
title
[PATCH] RISC-V: Fix fmv.x testcase for non-default --with-arch
headline
RISC-V: Fix fmv.x testcase for non-default --with-arch
tldr
Patch fixes the RISC-V fmv.x testcase to explicitly use -march=rv32i, preventing failures with non-default --with-arch configurations.
proposer
"Ethan Y. C. Liang" <ycl669@andestech.com>
consensus
Proposed
outcome
proposed
sentiment_score
7
technical_tradeoffs
  • • Hardcoding `-march=rv32i` makes the testcase less flexible but more robust against build configuration variations.
  • • Ensuring test isolation from build-time architecture flags improves test reliability.
series_id
—
series_role
standalone
series_parts
[]
tags
  • • RISC-V
  • • gas
  • • testsuite
  • • patch
  • • architecture
bugzilla_url
—
date
2026-09-22T00:00:00.000Z

[PATCH] RISC-V: Fix fmv.x testcase for non-default --with-arch

This patch addresses a failing test case in the gas testsuite for RISC-V. The fmv.x testcase was not passing the -march flag, leading it to inherit the default architecture configured at build time. This caused failures when build configurations used non-default --with-arch options, such as rv32e* or rv32i_zfinx. The fix ensures the test explicitly uses -march=rv32i which is sufficient for its purpose of verifying fmv.x.s/fmv.s.x as aliases of fmv.x.w/fmv.w.x.