OSDN Git Service

Support CMOV for x86 Select
authorMark Mendell <mark.p.mendell@intel.com>
Sat, 6 Feb 2016 18:58:35 +0000 (13:58 -0500)
committerMark Mendell <mark.p.mendell@intel.com>
Tue, 16 Feb 2016 15:10:44 +0000 (10:10 -0500)
commit0c5b18edd1308975804ccf29a02a130a7b6f7fa7
tree58f60a2f93973460f1602f007ffdb2c6d7c577bf
parent7eca244e79480f2ecea341598524a53273959c2b
Support CMOV for x86 Select

If possible, generate CMOV to implement HSelect.  Tricky cases are a
long or FP condition (no single CC generated), FP inputs (no FP CMOV)
and when the condition is a boolean or not emitted at the use site.
In these cases, keep using the existing HSelect code.

Change-Id: I4ff1e152b8ef126fbbabeb3316e9e2b6a6b74aeb
Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
compiler/Android.mk
compiler/optimizing/code_generator_x86.cc
compiler/optimizing/code_generator_x86.h
compiler/optimizing/prepare_for_register_allocation.cc
test/566-checker-codegen-select/src/Main.java
test/570-checker-select/src/Main.java