Floating Point Instructions Flashcards

1
Q

Which bits are used by S and D registers?

A

S registers use the low order 32 bits, while D registers use the low order 64 bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How many FP registers does ARMv8 have?

A

32 128-bit registers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How is memory allocated and initialized for FP numbers?

A

Using the .single or .double pseudo-op, with the prefix 0r
ie. .single 0r5.0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Can FP arithmetic use immediate vlaues?

A

No, FP instructions cannot use immediates, only registers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which immediate values can be moved into FP registers?

A

The immediate must be expressible as +/- n / (16 x 2^r)
n in range: 16 to 31
r in range: -3 to 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the instruction to convert from a FP register to a W/X register

A

fcvtns or fcvtnu

How well did you know this?
1
Not at all
2
3
4
5
Perfectly