Files
c3c/test/test_suite/asm/asm_store_rv.c3t
2024-08-20 22:42:38 +02:00

17 lines
252 B
C

// #target: elf-riscv32
module test;
fn void main(String[] args)
{
int x = 2;
int y = 0;
asm
{
lw $a4, [&x];
sw $a4, [&y];
}
}
/* #expect: test.ll
"lw a4, $1\0Asw a4, $0\0A", "=*m,*m,~{x14}"(ptr elementtype(i32) %y, ptr elementtype(i32) %x)