Revert "Make Math.round consistent on arm64."
This reverts commit 40041c9a38e3961d8675d117517719458a115520.
Needs to be generalized to all platforms.
Bug: 26327751
Change-Id: Iae8f1c8846d120d8e3e99b6eb87f3760bf793ec5
diff --git a/compiler/dex/quick/arm64/fp_arm64.cc b/compiler/dex/quick/arm64/fp_arm64.cc
index 97f13e9..3b88021 100644
--- a/compiler/dex/quick/arm64/fp_arm64.cc
+++ b/compiler/dex/quick/arm64/fp_arm64.cc
@@ -448,10 +448,6 @@
}
bool Arm64Mir2Lir::GenInlinedRound(CallInfo* info, bool is_double) {
- if ((true)) {
- // TODO(26327751): Re-enable?
- return false;
- }
int32_t encoded_imm = EncodeImmSingle(bit_cast<uint32_t, float>(0.5f));
A64Opcode wide = (is_double) ? WIDE(0) : UNWIDE(0);
RegLocation rl_src = info->args[0];
diff --git a/compiler/optimizing/intrinsics_arm64.cc b/compiler/optimizing/intrinsics_arm64.cc
index 4e7f60d..9f6863c 100644
--- a/compiler/optimizing/intrinsics_arm64.cc
+++ b/compiler/optimizing/intrinsics_arm64.cc
@@ -614,10 +614,6 @@
}
void IntrinsicLocationsBuilderARM64::VisitMathRoundDouble(HInvoke* invoke) {
- if ((true)) {
- // TODO(26327751): Re-enable?
- return;
- }
CreateFPToIntPlusTempLocations(arena_, invoke);
}
@@ -626,10 +622,6 @@
}
void IntrinsicLocationsBuilderARM64::VisitMathRoundFloat(HInvoke* invoke) {
- if ((true)) {
- // TODO(26327751): Re-enable?
- return;
- }
CreateFPToIntPlusTempLocations(arena_, invoke);
}