1.(35%) You are given the following code. Note that floating point instructions use floating point registers labeled r.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

1.(35%) You are given the following code. Note that floating point instructions use floating point registers labeled r.

Post by answerhappygod »

1 35 You Are Given The Following Code Note That Floating Point Instructions Use Floating Point Registers Labeled R 1
1 35 You Are Given The Following Code Note That Floating Point Instructions Use Floating Point Registers Labeled R 1 (257.85 KiB) Viewed 29 times
1.(35%) You are given the following code. Note that floating point instructions use floating point registers labeled r. Integer instructions use integer registers labeled . Remember that the first operand is the destination. The memory address referenced in fld and fsd are obtained by adding the displacement to the value in the index register loop:nd div rid fadd fadd Isd addi addi sub 12.0%) 12.10.12 18.12.10 f4. X2 14.10.14 10.18.12 14. (X2) xx1.8 2.2.8 *10.x4.1 10, loop We are given the following latencies for the different types of instructions. Floating Point Add/Sub Floating point Multiply Floating point Divide Load/Store Integer arithmetic Branch if take Branch if noktalen 3 4 10 2 1 2 1 Remember how to use latencies. For example, since Floating point ADD/SUB have a latency of 3. the fsd N.O(x2) which reaks the results of fadd 4.0.4 must wait 3 cycles from when fadd starts for include 2 stalls). Also, the latencies given here are different from other examples we have seen in class. a). Show how many cycles are needed to complete one iteration without reordering. DO NOT use delayed branch b). Reorder instructions and show how many cycles are needed to complete one iteration. BE CAREFUL TO ADJUST OFFSETS WITH WHEN YOU REORDER INSTRUCTIONS
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply