由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - 问个delayed branch的问题
相关主题
help on interface for Matlab and FortranAbaqus: error with dynamic loading
Help! reverse Cuthill-McKee reordering..LP, IP package in C++?
how to get a linearity of a 3D field?[转载] 谁有Mario Martin 的SVM Incremental Regression 包
用matlab算一个数值解5 increments between minimum and maximum
fortran的random number 相关的函数lib是啥?about using GAMS/Cplex to solve a MIP problem
sigmaplot问题(zt)very dissapointed with Cplex
问一个Lax格式数值求解2维PDE的稳定性问题time step control LS-DYNA vs. ABAQUS/Explicit
a question on brownian motionBound and Branch
相关话题的讨论汇总
话题: rx话题: f2话题: f4话题: ry话题: delayed
进入Computation版参与讨论
1 (共1页)
l******y
发帖数: 204
1
Computer Architecture的一个问题
话说有这么一个Scalar MIPS code for DAXPY (aX + Y):
L.D F0,a ;load scalar a
DADDIU R4,Rx,#392 ;last address to load
Loop: L.D F2,0(Rx) ;load X(i)
MUL.D F2,F2,F0 ;a × X(i)
L.D F4,0(Ry) ;load Y(i)
ADD.D F4,F4,F2 ;a × X(i) + Y(i)
S.D 0(Ry),F4 ;store into Y(i)
DADDIU Rx,Rx,#8 ;increment index to X
DADDIU Ry,Ry,#8 ;increment index to Y
DSUBU R20,R4,Rx ;compute bound
BNEZ R20,Loop ;check if done
问 How does the order of the code change due to the delayed branch?
老师提示我 Having a delayed branch does not reorder the
code drastically as you have proposed but moves one instruction (since the
delayed branch was one cycle).
So given this new
information, which statement changes its position relative to the BNEZ
statement.
我说把loop里面的第一个Load放到BNEZ后面好让branch delay slot填上,别闲着。这
厮说不对。不知道是不是我没有理解delayed branching,哪位能给再讲解一下。谢了
1 (共1页)
进入Computation版参与讨论
相关主题
Bound and Branchfortran的random number 相关的函数lib是啥?
[转载] 问个弱智的branch and bound 问题哈,抓狂中~~~sigmaplot问题(zt)
向大家请教一个modeling的问题 (转载)问一个Lax格式数值求解2维PDE的稳定性问题
问个delayed branch的问题a question on brownian motion
help on interface for Matlab and FortranAbaqus: error with dynamic loading
Help! reverse Cuthill-McKee reordering..LP, IP package in C++?
how to get a linearity of a 3D field?[转载] 谁有Mario Martin 的SVM Incremental Regression 包
用matlab算一个数值解5 increments between minimum and maximum
相关话题的讨论汇总
话题: rx话题: f2话题: f4话题: ry话题: delayed