OSDN Git Service

Tests on FP Math.abs()
authorAart Bik <ajcbik@google.com>
Mon, 19 Dec 2016 21:57:31 +0000 (13:57 -0800)
committerAart Bik <ajcbik@google.com>
Tue, 20 Dec 2016 20:51:52 +0000 (12:51 -0800)
commitb67877704edf8a32e71ce825d7ab4703be39f8ce
treed91105a807ad11eaf29c3675875ec5d9f532b6ff
parentd54f43ca39dfa92f08c2d760123f185f0f65fb86
Tests on FP Math.abs()

Rationale:
As a "quality of implementation" rather than pure "spec compliance"
we require that Math.abs() clears the sign bit (but changes nothing
else) for all numbers, including NaN.

These tests ensure that remains the case.

**NOTE**
This CL depends on the pending libcore change
(https://android-review.googlesource.com/#/c/316368/).

Test: test-art-host
Bug: 30758343

Change-Id: I01044a73992b2e89d97060ed8bbb76abea0933b9
test/631-checker-fp-abs/expected.txt [new file with mode: 0644]
test/631-checker-fp-abs/info.txt [new file with mode: 0644]
test/631-checker-fp-abs/src/Main.java [new file with mode: 0644]