Skip to content

Commit 530baa4

Browse files
committed
might as well add the link to the LLVM assembly code as well.
1 parent 2ee15dd commit 530baa4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/riscv.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ intrinsics! {
1414
//
1515
// for reference, see also implementation from gcc
1616
// https://raw.githubusercontent.com/gcc-mirror/gcc/master/libgcc/config/epiphany/mulsi3.c
17+
//
18+
// and from LLVM (in relatively readable RISC-V assembly):
19+
// https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/builtins/riscv/int_mul_impl.inc
1720
pub extern "C" fn __mulsi3(a: u32, b: u32) -> u32 {
1821
let (mut a, mut b) = (a, b);
1922
let mut r = 0;

0 commit comments

Comments
 (0)