Fix GT_MULHI register requirements
authorMike Danes <onemihaid@hotmail.com>
Sun, 13 Nov 2016 09:56:46 +0000 (11:56 +0200)
committerMike Danes <onemihaid@hotmail.com>
Tue, 15 Nov 2016 06:04:21 +0000 (08:04 +0200)
commit0822b57867aaae098239022e7ebaef745588b8a4
tree8beba6f0d9825f28260e4ce504e2b59040eb9a3d
parent8b3f1fa4a3ede03cbc690d336dc74145976a60fe
Fix GT_MULHI register requirements

We only care about the upper 32 bits of the 64 bit result and those are
in EDX. It doesn't make sense to set the destination candidate to EAX,
most of the time this will result in a useless `mov eax, edx` being
generated.

Also, genCodeForMulHi needs to check if the implicit operand is in EAX
rather than targetReg.
src/jit/codegenxarch.cpp
src/jit/lowerxarch.cpp