OSDN Git Service

Add -mno-movbe to disable "movbe" instruction from code-gen
authorAndrew Hsieh <andrewhsieh@google.com>
Fri, 18 May 2012 07:53:35 +0000 (15:53 +0800)
committerAndrew Hsieh <andrewhsieh@google.com>
Fri, 18 May 2012 07:53:35 +0000 (15:53 +0800)
commit112a674798c58052ddce94418e34f3e5a084ed1a
tree7dab2511ac9d4fd4711717553aa2d6e6db1d068b
parentfeec98b139d2ca0b0164a5e178e75ce88b8f492f
Add -mno-movbe to disable "movbe" instruction from code-gen

Intruction "movbe" (move data after swapping bytes) is only available in
Intel atom.  Disable it for more general x86 devices and x86 hosts which
run emulator-x86.  Although emulator-x86 can support "movbe", most of
the time we want to run emulator-x86 with VT support for speed (with KVM
in Linux, or HAXM in Windows/MacOSX).  The presence of "movbe" can crash
emulator-x86 in VT because non-atom host doesn't have it natively.

Change-Id: I86e037900ddcb8d544f92b8d8464c8627347e560
core/combo/TARGET_linux-x86.mk