Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llc error #114956

Open
pyl3000 opened this issue Nov 5, 2024 · 6 comments
Open

llc error #114956

pyl3000 opened this issue Nov 5, 2024 · 6 comments
Labels
backend:RISC-V question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

Comments

@pyl3000
Copy link

pyl3000 commented Nov 5, 2024

When I run llc march=riscv32 There was an error with this command

output: error: invalid target 'riscv32'.

@junaire
Copy link
Member

junaire commented Nov 5, 2024

Can you try:

llc -march=riscv32

@pyl3000
Copy link
Author

pyl3000 commented Nov 5, 2024

Can you try:

llc -march=riscv32

Still appearing: error: invalid target 'riscv32'

@zhaoqi5
Copy link
Contributor

zhaoqi5 commented Nov 5, 2024

Please run llc --version to check whether riscv32 target was built.

@EugeneZelenko EugeneZelenko added question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead! backend:RISC-V and removed new issue labels Nov 5, 2024
@llvmbot
Copy link
Collaborator

llvmbot commented Nov 5, 2024

@llvm/issue-subscribers-backend-risc-v

Author: zzzzzzzzz (pyl3000)

When I run `llc march=riscv32` There was an error with this command

output: error: invalid target 'riscv32'.

@lukel97
Copy link
Contributor

lukel97 commented Nov 5, 2024

riscv32 is part of a target triple so you need to pass it as llc -mtriple=riscv32

@topperc
Copy link
Collaborator

topperc commented Nov 5, 2024

riscv32 is part of a target triple so you need to pass it as llc -mtriple=riscv32

-march=riscv32 should work if RISCV backend has been built. -march for llc is different than for clang.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:RISC-V question A question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!
Projects
None yet
Development

No branches or pull requests

7 participants