Displaying 1 result from an estimated 1 matches for "rv32img".
Did you mean:
rv32imc
2020 Apr 26
2
assembly code for array iteration generated by llvm is much slower than gcc
...dst_idx = w1 * i + w2;
dst_idx2 = w2 * i + w1;
b[dst_idx] = sum;
b[dst_idx2] = sum/2;
}
}
Compile command:
riscv32-unkown-elf-g++ -nostartfiles -nostdlib -O2 -march=rv32imf -mabi=ilp32f -fno-builtin -S perf.c -o perf.g++
clang++ -O2 –target=riscv32 -march=rv32img -mabi=ilp32f -nostdlib -fno-builtin -S perf.c -o perf.lang
the gcc version is 7.2.0
the llvm version is 10.0.0
Assembly code of the loop generated by gcc and llvm:
[cid:image002.jpg at 01D61BBF.0A4250B0]
Thank you all for your time and any help you can provide.
Lori
--------------...