5.108 · exercise

Intermediate quiz: floating point

Single and double precision registers, which ones a subroutine has to preserve, conversions between the two formats, and the rules for arithmetic, argument passing, and comparison.

0 of 5 correct

Multiple choice

What can go wrong when fcvt s0, d0 executes?

Multiple choice

In fmadd s0, s1, s2, s3, what value does the destination receive?

Multiple choice

Which floating-point registers must a subroutine preserve across a call, saving and restoring them if it uses them?

Multiple choice

How many floating-point arguments can be passed to a subroutine in registers before the rest have to go on the stack?

Multiple choice

Where does fcmp d0, d1 leave its result?