--- a/hotspot/src/cpu/x86/vm/templateInterpreterGenerator_x86_64.cpp Fri Nov 18 19:04:48 2016 +0000
+++ b/hotspot/src/cpu/x86/vm/templateInterpreterGenerator_x86_64.cpp Mon Nov 21 08:27:10 2016 +0100
@@ -370,11 +370,17 @@
//
if (kind == Interpreter::java_lang_math_fmaD) {
+ if (!UseFMA) {
+ return NULL; // Generate a vanilla entry
+ }
__ movdbl(xmm0, Address(rsp, wordSize));
__ movdbl(xmm1, Address(rsp, 3 * wordSize));
__ movdbl(xmm2, Address(rsp, 5 * wordSize));
__ fmad(xmm0, xmm1, xmm2, xmm0);
} else if (kind == Interpreter::java_lang_math_fmaF) {
+ if (!UseFMA) {
+ return NULL; // Generate a vanilla entry
+ }
__ movflt(xmm0, Address(rsp, wordSize));
__ movflt(xmm1, Address(rsp, 2 * wordSize));
__ movflt(xmm2, Address(rsp, 3 * wordSize));