llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.34k stars 11.7k forks source link

[RISC-V] .insn directive does not support constant arg #97498

Closed charlie-rivos closed 2 months ago

charlie-rivos commented 3 months ago

GNU-as supports a constant value to the .insn assembler directive as of commit: https://github.com/bminor/binutils-gdb/commit/a262b82fdbf4cda3b0648b1adc32245ca3f78b7a. The RISC-V LLVM assembler currently only supports the .insn directive with in the form of .insn <type>, <operand1>, <operand2>. Can the form of .insn <value> also be supported by Clang?

llvmbot commented 3 months ago

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

Author: None (charlie-rivos)

GNU-as supports a constant value to the .insn assembler directive as of commit: https://github.com/bminor/binutils-gdb/commit/a262b82fdbf4cda3b0648b1adc32245ca3f78b7a. The RISC-V LLVM assembler currently only supports the .insn directive with in the form of `.insn <type>, <operand1>, <operand2>`. Can the form of `.insn <value>` also be supported by Clang?
lenary commented 3 months ago

These are in a PR against the asm manual, but it hasn't landed yet: https://github.com/riscv-non-isa/riscv-asm-manual/pull/106

charlie-rivos commented 3 months ago

I will push that through first then, thank you!