Add define for FEATURE_SIMD
authorjashook <jashoo@microsoft.com>
Mon, 8 May 2017 16:30:24 +0000 (09:30 -0700)
committerjashook <jashoo@microsoft.com>
Mon, 8 May 2017 17:38:22 +0000 (10:38 -0700)
This fixs a build break in the desktop product.

Commit migrated from https://github.com/dotnet/coreclr/commit/adfd1856a4eaa1e3cb5e45389c6e672cb84cb55d

src/coreclr/src/jit/codegencommon.cpp

index 5af2258..94cc9b9 100644 (file)
@@ -7444,10 +7444,18 @@ void CodeGen::genProfilingEnterCallback(regNumber initReg, bool* pInitRegZeroed)
                 continue;
             }
 
-            var_types   storeType = varDsc->lvaArgType();
-            regNumber   argReg    = varDsc->lvArgReg;
-            instruction store_ins =
-                ((storeType == TYP_SIMD8) && genIsValidIntReg(argReg)) ? INS_mov : ins_Store(storeType);
+            var_types storeType = varDsc->lvaArgType();
+            regNumber argReg    = varDsc->lvArgReg;
+
+            instruction store_ins = ins_Store(storeType);
+
+#ifdef FEATURE_SIMD
+            if ((storeType == TYP_SIMD8) && genIsValidIntReg(argReg))
+            {
+                store_ins = INS_mov;
+            }
+#endif // FEATURE_SIMD
+
             getEmitter()->emitIns_S_R(store_ins, emitTypeSize(storeType), argReg, varNum, 0);
         }
     }
@@ -7509,9 +7517,18 @@ void CodeGen::genProfilingEnterCallback(regNumber initReg, bool* pInitRegZeroed)
             continue;
         }
 
-        var_types   loadType = varDsc->lvaArgType();
-        regNumber   argReg   = varDsc->lvArgReg;
-        instruction load_ins = ((loadType == TYP_SIMD8) && genIsValidIntReg(argReg)) ? INS_mov : ins_Load(loadType);
+        var_types loadType = varDsc->lvaArgType();
+        regNumber argReg   = varDsc->lvArgReg;
+
+        instruction load_ins = ins_Load(loadType);
+
+#ifdef FEATURE_SIMD
+        if ((loadType == TYP_SIMD8) && genIsValidIntReg(argReg))
+        {
+            load_ins = INS_mov;
+        }
+#endif // FEATURE_SIMD
+
         getEmitter()->emitIns_R_S(load_ins, emitTypeSize(loadType), argReg, varNum, 0);
 
 #if FEATURE_VARARG