{
#ifdef FEATURE_HFA
CorInfoType corType = info.compCompHnd->getHFAType(hClass);
-#ifdef _TARGET_ARM64_
+#if defined(_TARGET_ARM64_) && defined(FEATURE_SIMD)
if (corType == CORINFO_TYPE_VALUECLASS)
{
// This is a vector type.
compFloatingPointUsed = true;
}
else
-#endif // _TARGET_ARM64_
+#endif // _TARGET_ARM64_ && FEATURE_SIMD
if (corType != CORINFO_TYPE_UNDEF)
{
result = JITtype2varType(corType);
#ifdef FEATURE_HFA
assert(lvIsHfa());
return HfaTypeFromElemKind(_lvHfaElemKind);
-#endif // FEATURE_HFA
+#else
return TYP_UNDEF;
+#endif // FEATURE_HFA
}
void SetHfaType(var_types type)
{
#ifdef FEATURE_HFA
return HfaTypeFromElemKind(_hfaElemKind);
-#endif // FEATURE_HFA
+#else
return TYP_UNDEF;
+#endif // FEATURE_HFA
}
void SetHfaType(var_types type, unsigned hfaSlots)
// Round up in case of odd HFA count.
size = (size + 1) >> 1;
}
+#ifdef FEATURE_SIMD
else if (hfaType == TYP_SIMD16)
{
size <<= 1;
}
+#endif
#endif // _TARGET_ARM64_
}
#endif // FEATURE_HFA
// We have a HFA struct.
// Note that GetHfaType may not be the same as elemType, since TYP_SIMD8 is handled the same as TYP_DOUBLE.
var_types useElemType = elemType;
-#ifdef _TARGET_ARM64_
+#if defined(_TARGET_ARM64_) & defined(FEATURE_SIMD)
useElemType = (elemType == TYP_SIMD8) ? TYP_DOUBLE : useElemType;
-#endif // _TARGET_ARM64_
+#endif // _TARGET_ARM64_ && FEATURE_SIMD
noway_assert(useElemType == varDsc->GetHfaType());
noway_assert(elemSize == genTypeSize(elemType));
noway_assert(elemCount == (varDsc->lvExactSize / elemSize));