Accelerate bit manipulation in XiangShan processer using RISC-V B extension and instruction fusion
Fawang Zhang, Dan Tang, Ye Cai · International Conference on Cloud Computing, Internet of Things, and Computer Applications (CICA) · 2022
In the field of high-performance computing, some application scenarios make extensive use of bit manipulation. RISC-V foundation issues B extension to reduce the number of instructions during the static compilation. But this extension does not cover the more frequent operations fully. Instruction fusion technology can fuse multiple instructions into one instruction at the decode stage to dynamically reduce the number of instructions. Therefore, this technology can supplement RISC-V B extension uncovered instruction, enhancing the processor’s capabilities for bit manipulation. This paper implements the RISC-V B extension 1.0 version on the Xiangshan processor. For accelerating more bit manipulation, we profiled general benchmarks by the simulator, proposed ten new instructions fusion targets, and implemented a fusion decode unit. Finally, we use Coremark and SPEC CPU 2006 integer to evaluate the performance. The Coremark results show that dynamic instructions reduce by 18.14%, and the performance improves by 12.09%.
Cited by 4 works. doi:10.1117/12.2642009
Authors
References
- Automatically characterizing large scale program behavior
- Proceedings of the 34th annual international symposium on Computer architecture
- 2020 IEEE 9th International Conference on Communication Systems and Network Technologies (CSNT)
- RISC-V Extensions for Bit Manipulation Instructions
- 2021 34th International Conference on VLSI Design and 2021 20th International Conference on Embedded Systems (VLSID)