Skip to content

Commit da9ee61

Browse files
Fix assembler syntax for RISC-V (#140)
1 parent feb836f commit da9ee61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libblastrampoline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ __attribute__((always_inline)) inline uintptr_t get_forward_name_idx() {
3535
#elif defined(ARCH_powerpc64le)
3636
asm("\t addi %0,11,0" : "=r"(idx));
3737
#elif defined(ARCH_riscv64)
38-
asm("\t mov %%t4,%0" : "=r"(idx));
38+
asm("\t mv %0,t4" : "=r"(idx));
3939
#elif defined(ARCH_x86_64)
4040
asm("\t movq %%r10,%0" : "=r"(idx));
4141
#else

0 commit comments

Comments
 (0)