OSDN Git Service

Exercise the x86 and x86-64 FILD and FISTP instructions.
authorRoland Levillain <rpl@google.com>
Mon, 13 Apr 2015 16:00:20 +0000 (17:00 +0100)
committerRoland Levillain <rpl@google.com>
Mon, 13 Apr 2015 16:00:20 +0000 (17:00 +0100)
commit0a18601f141d864a26d4b74ff5613e69ae411483
treef8f716fe135199e620c552244a867a8c2a6f7be9
parent9134a1a405d471b0dfbf299ab0d4c2d629778632
Exercise the x86 and x86-64 FILD and FISTP instructions.

- Ensure the double- and quadword x87 (FPU) instructions for
  integer loading (resp. fildl and fildll) are properly
  generated by the x86 and x86-64 generators (resp.
  X86Assembler::filds/X86_64Assembler::filds and
  X86Assembler::fildl/X86_64Assembler::fildl).
- Ensure the double- and quadword x87 (FPU) instructions for
  integer storing & popping (resp. filstpl and fistpll) are
  properly generated by the x86 and x86-64 generators (resp.
  X86Assembler::fistps/X86_64Assembler::fistps and
  X86Assembler::fistpl/X86_64Assembler::fistpl).

These instructions can be used in the implementation of the
long-to-float and long-to-double Dex type conversions.

Change-Id: Iade52a9aee326d189d77d3dbd352a2b5dab52e46
compiler/utils/x86/assembler_x86.cc
compiler/utils/x86/assembler_x86.h
compiler/utils/x86/assembler_x86_test.cc
compiler/utils/x86_64/assembler_x86_64.cc
compiler/utils/x86_64/assembler_x86_64.h
compiler/utils/x86_64/assembler_x86_64_test.cc