arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1607.02318cs.AR
收藏

精简指令集计算机的新案例:用RISC宏操作融合避免ISA膨胀- V

The Renewed Case for the Reduced Instruction Set Computer: Avoiding ISA Bloat with Macro-Op Fusion for RISC-V

Christopher Celio, Palmer Dabbelt, David A. Patterson, Krste Asanović

摘要:

这份报告表明,设计良好的精简指令集计算机(RISC)可以匹配,甚至超过现有商业复杂指令集计算机(CISC)的性能和代码密度,同时保持简单性和成本效益,支持原始RISC目标。我们首先比较了运行SPEC CINT 2006基准测试套件时,流行的专有ARMv7、ARMv 8、IA-32和x86-64指令集架构(ISA)与自由开放的RISC-V RV 64 G和RV 64 GC ISA获取的动态指令计数和动态指令字节。RISC-V被设计为一个非常小的ISA,以支持广泛的实现,并且具有不太成熟的编译器工具链。然而,我们观察到,在SPEC CINT 2006上,RV 64 G执行的指令平均比x86-64多16%,比IA-32多3%,比ARMv 8多9%,但比ARMv7少4%。CISC x86实现将复杂指令分解为更小的内部RISC类微操作,RV 64 G指令计数在x86-64退役微操作计数的2%以内。RV 64 GC是RV 64 G的压缩变体,是所研究的分布式ISA,其获取的动态指令字节数比x86-64少8%。我们观察到,RISC-V指令数量的增加主要是由于一小部分常见的多指令习惯用法。利用这一事实,RV 64 G和RV 64 GC有效指令数可以通过利用宏操作融合平均减少5.4%。将压缩的RISC-V ISA扩展与宏操作融合相结合,既提供了可扩展的ISA,又为每个程序提供了最少的动态操作,从而减少了向ISA添加更多指令的动机。这种方法保留了一个简单的ISA,适用于低端和高端实现,其中高端实现可以通过微架构技术提高性能。

英文摘要:

This report makes the case that a well-designed Reduced Instruction Set Computer (RISC) can match, and even exceed, the performance and code density of existing commercial Complex Instruction Set Computers (CISC) while maintaining the simplicity and cost-effectiveness that underpins the original RISC goals. We begin by comparing the dynamic instruction counts and dynamic instruction bytes fetched for the popular proprietary ARMv7, ARMv8, IA-32, and x86-64 Instruction Set Architectures (ISAs) against the free and open RISC-V RV64G and RV64GC ISAs when running the SPEC CINT2006 benchmark suite. RISC-V was designed as a very small ISA to support a wide range of implementations, and has a less mature compiler toolchain. However, we observe that on SPEC CINT2006 RV64G executes on average 16% more instructions than x86-64, 3% more instructions than IA-32, 9% more instructions than ARMv8, but 4% fewer instructions than ARMv7. CISC x86 implementations break up complex instructions into smaller internal RISC-like micro-ops, and the RV64G instruction count is within 2% of the x86-64 retired micro-op count. RV64GC, the compressed variant of RV64G, is the densest ISA studied, fetching 8% fewer dynamic instruction bytes than x86-64. We observed that much of the increased RISC-V instruction count is due to a small set of common multi-instruction idioms. Exploiting this fact, the RV64G and RV64GC effective instruction count can be reduced by 5.4% on average by leveraging macro-op fusion. Combining the compressed RISC-V ISA extension with macro-op fusion provides both the densest ISA and the fewest dynamic operations retired per program, reducing the motivation to add more instructions to the ISA. This approach retains a single simple ISA suitable for both low-end and high-end implementations, where high-end implementations can boost performance through microarchitectural techniques.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑