Reviewers: rmcilroy, Rodolph Perfetta (ARM), ulan,
Description:
A64: When truncating to an int, store the result in a 64bit register
We don't check later one whether the result is 32bit or 64bit, so we end
up using an undefined value otherwise.
BUG=none
[email protected],[email protected],[email protected]
TEST=mjsunit/sin-cos.js
LOG=n
Please review this at https://codereview.chromium.org/131333011/
SVN Base: https://v8.googlecode.com/svn/branches/experimental/a64
Affected files (+1, -1 lines):
M src/a64/lithium-codegen-a64.cc
Index: src/a64/lithium-codegen-a64.cc
diff --git a/src/a64/lithium-codegen-a64.cc b/src/a64/lithium-codegen-a64.cc
index
da03ccc214700a949048b590d342a434f84521c2..a9a298f62e8ba82e49fd7641338d1d6d5e8a35cc
100644
--- a/src/a64/lithium-codegen-a64.cc
+++ b/src/a64/lithium-codegen-a64.cc
@@ -5493,7 +5493,7 @@ void
LCodeGen::DoTruncateDoubleToIntOrSmi(LTruncateDoubleToIntOrSmi* instr) {
ToRegister(instr->temp2()),
instr->tag_result()
? MacroAssembler::SMI
- : MacroAssembler::INT32_IN_W);
+ : MacroAssembler::INT32_IN_X);
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.