lowRISC / lowRISC/riscv-llvm

Add support for RV32IM without division

Open
#45 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
277
Forks
55
PR merge metrics
No merged PRs in 30d

Description

Could we add something like `-mattr=+m,-div` or `-mattr=+mul` to generate multiplication instructions but not division (and remainder, etc.) instructions?

I'm not the only one who wants this. For instance:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by locating the compiler's RISC-V feature handling and existing multiplication and division target options, then identify how the requested RV32IM-without-division behavior is tested. Done means the supported attribute combination generates multiplication instructions while excluding division and remainder instructions.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.