Assembly language: integer/floating-point instructions Flashcards
Describe the format of the MOV instruction.
…………..
When might the “movzbq” instruction be used?
…………..
When might the “movsbq” instruction be used?
…………..
Name all of the mov instructions used to move an integral value from one size to another with zero extension.
…………..
Name all of the mov instructions used to move an integral value from one size to another with sign extension.
…………..
What does the instruction “vcvtsi2sd” do?
Converts a 32-bit integer to a double.
What pair of instructions are used to convert a double stored in register %xmm0 to a float?
vmovddup %xmm0, %xmm0
vcvtpd2psx %xmm0, %xmm0
What pair of instructions are used to convert a double stored in register %xmm0 to a float?
vmovddup %xmm0, %xmm0
vcvtpd2psx %xmm0, %xmm0
What does the instruction “vcvtsi2sdq” do?
Converts a 64-bit integer to a double.