SSE FPU parallel

混江龙づ霸主 提交于 2019-12-12 20:25:13

问题


I was wondering if it would be possible to use SSE in parallel with x87. So consider the following pseudo code,

1: sse_insn 2: x87_insn

Would the pipeline execute 1 and 2 in parallel assuming they can be executed in parallel?


回答1:


In all modern (and older) processors, the x87 and SSE instructions use the same execution units, so it's UNLIKELY that you will benefit much from this sort of code. There may be very special cases where you can trick the processor into running for example a x87 divide in parallel with an SSE add, or something like that, but if you are simply doing a big loop of similar operations, there is almost certainly no benefit.



来源:https://stackoverflow.com/questions/16463567/sse-fpu-parallel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!