Skip to content

Commit

Permalink
Update tests/ui/abi/riscv32e-registers.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jubilee <workingjubilee@gmail.com>
  • Loading branch information
hegza and workingjubilee authored Oct 5, 2024
1 parent 2fdda7d commit a3f6821
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/ui/abi/riscv32e-registers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ macro_rules! asm {
#[lang = "sized"]
trait Sized {}

// Check that loads to registers x1..=x16 will be generated but loads to registers x17..=x31 will
// not.
// Verify registers x1..=x15 are addressable on riscv32e, but registers x16..=x31 are not.
#[no_mangle]
pub unsafe fn registers() {
asm!("li x1, 0");
Expand Down

0 comments on commit a3f6821

Please sign in to comment.