Index: src/crankshaft/s390/lithium-s390.cc |
diff --git a/src/crankshaft/s390/lithium-s390.cc b/src/crankshaft/s390/lithium-s390.cc |
index e147cebeffef193e0f29e50f331da5ecc602c74d..cd5ff79c781d588872f1e7bfeb62ff6d805fe6a6 100644 |
--- a/src/crankshaft/s390/lithium-s390.cc |
+++ b/src/crankshaft/s390/lithium-s390.cc |
@@ -619,7 +619,9 @@ LInstruction* LChunkBuilder::DoArithmeticD(Token::Value op, |
LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); |
LOperand* right = UseRegisterAtStart(instr->BetterRightOperand()); |
LArithmeticD* result = new (zone()) LArithmeticD(op, left, right); |
- return DefineSameAsFirst(result); |
+ return CpuFeatures::IsSupported(VECTOR_FACILITY) |
+ ? DefineAsRegister(result) |
+ : DefineSameAsFirst(result); |
} |
} |