1.1 --- a/src/cpu/mips/vm/vm_version_mips.cpp Tue May 16 16:35:16 2017 -0400 1.2 +++ b/src/cpu/mips/vm/vm_version_mips.cpp Wed May 17 03:46:25 2017 -0400 1.3 @@ -91,6 +91,18 @@ 1.4 MaxVectorSize = 8; 1.5 } 1.6 } 1.7 +/* 1.8 + * 1.9 + * 2017/5/17: 1.10 + * Vector optimization of MIPS works in most cases, but cannot pass hotspot/test/compiler/6340864/TestFloatVect.java. 1.11 + * Vector optimization was closed by default. 1.12 + * The reasons: 1.13 + * 1. The kernel does not have emulation of PS instructions yet, so the emulation of PS instructions must be done in JVM, see JVM_handle_linux_signal. 1.14 + * 2. It seems the gcc4.4.7 had some bug related to ucontext_t, which is used in signal handler to emulate PS instructions. 1.15 + */ 1.16 + if (FLAG_IS_DEFAULT(MaxVectorSize)) { 1.17 + MaxVectorSize = 0; 1.18 + } 1.19 1.20 if (is_gs464e()) { 1.21 if (FLAG_IS_DEFAULT(UseCountTrailingZerosInstruction)) {