OSDN Git Service

X86 Long Min/Max: Avoid calling SRegToVReg with -1
authorMark Mendell <mark.p.mendell@intel.com>
Tue, 21 Oct 2014 21:44:32 +0000 (17:44 -0400)
committerMark Mendell <mark.p.mendell@intel.com>
Wed, 22 Oct 2014 13:20:32 +0000 (09:20 -0400)
commita65c1dbb8d3511da6c0804f8063c453f744629c2
treebf8d22524d37c9150dcb66049d029d6ec8223310
parent6207b2b0c299798fd5213bb3d6c05e5b978747e8
X86 Long Min/Max: Avoid calling SRegToVReg with -1

It is possible that the result of a call to min/max can't be combined
with the following move.  In that case, the destination will use the
default long return value (EAX/EDX), with a s_reg_low value of -1.
A debug compiler will assert fail in that case.

Fix: A result with no s_reg_low must be unused.  Just return with no
code generated, like X86 GenInlinedAbsFloat().

Seen compiling GmsCore.apk on the host with a debug backend.

Change-Id: I8006e822e8dcb2112d86e4047bb2e3037ba6fece
Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
compiler/dex/quick/x86/int_x86.cc