OSDN Git Service

Implement single-precision round intrinsic in x86
authorAart Bik <ajcbik@google.com>
Mon, 1 Aug 2016 23:52:27 +0000 (16:52 -0700)
committerAart Bik <ajcbik@google.com>
Thu, 4 Aug 2016 16:53:03 +0000 (09:53 -0700)
commit2c9f495e8f8c1b367662a5a7a32d216b70d3bb18
tree69da2e9c6d337fe22273ae8bb2c417fb7177ce75
parent89bd8358c0a69e8cd6456d81d88ef366e261f732
Implement single-precision round intrinsic in x86

Rationale:
X86 does not provide a direct instruction for the
required rounding and NaN and large positive numbers
must be dealt with too. This CL generates code that
correctly implements SP round in a reasonably
efficient manner (I hope....)

Test: 580-checker-round

BUG=26327751

Change-Id: Ic5f4d9cff9c27c855a8ad577c51ed3ed37fb60cd
compiler/optimizing/intrinsics_x86.cc
compiler/optimizing/pc_relative_fixups_x86.cc
test/580-checker-round/src/Main.java