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
2
Q
How many FP registers does ARMv8 have?
A
32 128-bit registers
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
4
Q
Can FP arithmetic use immediate vlaues?
A
No, FP instructions cannot use immediates, only registers
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
6
Q
What is the instruction to convert from a FP register to a W/X register
A
fcvtns or fcvtnu