void SetOpLclRelatedToSIMDIntrinsic(GenTreePtr op);
#endif
-#if FEATURE_HW_INTRINSICS
+#ifdef FEATURE_HW_INTRINSICS
GenTreeHWIntrinsic* gtNewSimdHWIntrinsicNode(var_types type,
NamedIntrinsic hwIntrinsicID,
var_types baseType,
bool tailCall);
NamedIntrinsic lookupNamedIntrinsic(CORINFO_METHOD_HANDLE method);
-#if FEATURE_HW_INTRINSICS
+#ifdef FEATURE_HW_INTRINSICS
static InstructionSet lookupHWIntrinsicISA(const char* className);
static NamedIntrinsic lookupHWIntrinsic(const char* methodName, InstructionSet isa);
static InstructionSet isaOfHWIntrinsic(NamedIntrinsic intrinsic);
CORINFO_CLASS_HANDLE SIMDVector4Handle;
CORINFO_CLASS_HANDLE SIMDVectorHandle;
-#if FEATURE_HW_INTRINSICS
+#ifdef FEATURE_HW_INTRINSICS
#if defined(_TARGET_ARM64_)
CORINFO_CLASS_HANDLE Vector64FloatHandle;
CORINFO_CLASS_HANDLE Vector64DoubleHandle;
// AVX2: 32-byte Vector<T> and Vector256<T>
unsigned int maxSIMDStructBytes()
{
-#if FEATURE_HW_INTRINSICS && defined(_TARGET_XARCH_)
+#if defined(FEATURE_HW_INTRINSICS) && defined(_TARGET_XARCH_)
if (compSupports(InstructionSet_AVX))
{
return YMM_REGSIZE_BYTES;
bool compSupports(InstructionSet isa) const
{
- #if defined(_TARGET_XARCH_) | defined(_TARGET_ARM64_)
+ #if defined(_TARGET_XARCH_) || defined(_TARGET_ARM64_)
return (opts.compSupportsISA & (1ULL << isa)) != 0;
#else
return false;
bool compCanUseSSE4; // Allow CodeGen to use SSE3, SSSE3, SSE4.1 and SSE4.2 instructions
#endif // _TARGET_XARCH_
- #if defined(_TARGET_XARCH_) | defined(_TARGET_ARM64_)
+ #if defined(_TARGET_XARCH_) || defined(_TARGET_ARM64_)
uint64_t compSupportsISA;
void setSupportedISA(InstructionSet isa)
{