https://github.com/rust-lang/rust/issues/72016#issuecomment-670158989 http://lists.libre-soc.org/pipermail/libre-soc-dev/2020-August/000054.html
Kazan will also most likely need inline assembly, so adding this to Kazan's budget. Setting to €400 for now.
Better description: Add PowerPC64 support to Rust's new `asm!` macro for inline assembly. This includes writing the code and going through the process of merging it into upstream Rust and addressing any concerns that arise in the process. A GitHub account is required. Knowledge of PowerPC assembly and/or Rustc's internals would be useful. Amanieu: > Adding support for a new architecture is actually quite straightforward since > most of the work is already done in LLVM. You only need to make 2 changes: > > Add the register definitions to src/librustc_target/asm/. > Add lowering to LLVM asm to src/librustc_codegen_llvm/asm.rs. > Have a look at #73214 which added inline asm support for Hexagon. This is more complex than adding support for Hexagon since PowerPC has many more constraint kinds than Hexagon (the example pull request below). Links: LLVM inline assembly ISA-specific constraint code list: https://llvm.org/docs/LangRef.html#supported-constraint-code-list LLVM inline assembly reference: https://llvm.org/docs/LangRef.html#inline-assembler-expressions PowerPC Spec (not expected to read all of it): https://wiki.raptorcs.com/w/images/f/f5/PowerISA_public.v3.1.pdf Example pull request for adding ISA to Rust's `asm!` macro: https://github.com/rust-lang/rust/pull/73214 RFC for Rust's `asm!` macro: https://github.com/rust-lang/rfcs/pull/2873
Relevant issues I discovered with inline assembly in LLVM: https://bugs.llvm.org/show_bug.cgi?id=47811 https://bugs.llvm.org/show_bug.cgi?id=47812
Just now discovered that DrChat on github implemented this! https://github.com/rust-lang/rust/pull/85279
(In reply to Jacob Lifshay from comment #4) > Just now discovered that DrChat on github implemented this! > > https://github.com/rust-lang/rust/pull/85279 great! sent details to DrChat about RFPs. jacob can you take care of budget-sync.
(In reply to Luke Kenneth Casson Leighton from comment #5) > jacob can you take > care of budget-sync. Done, except I no longer have the right ssh permissions to push the generated files to the server.