Index: src/compiler/arm64/code-generator-arm64.cc |
diff --git a/src/compiler/arm64/code-generator-arm64.cc b/src/compiler/arm64/code-generator-arm64.cc |
index c66ff1d22f3edfd8f26d5c6b8fcafcbf20aec59b..06509e896650c34eff8b29eb3f806cb0ef30511d 100644 |
--- a/src/compiler/arm64/code-generator-arm64.cc |
+++ b/src/compiler/arm64/code-generator-arm64.cc |
@@ -1058,6 +1058,11 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
break; |
case kArm64Float32ToUint64: |
__ Fcvtzu(i.OutputRegister64(), i.InputFloat32Register(0)); |
+ if (i.OutputCount() > 1) { |
+ __ Fcmp(i.InputFloat32Register(0), 0.0); |
+ __ Ccmp(i.OutputRegister(0), -1, ZFlag, ge); |
+ __ Cset(i.OutputRegister(1), ne); |
+ } |
break; |
case kArm64Float64ToUint64: |
__ Fcvtzu(i.OutputRegister64(), i.InputDoubleRegister(0)); |