summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve MacLean <sdmaclea.qdt@qualcommdatacenter.com>2017-10-18 14:02:19 -0400
committerSteve MacLean <sdmaclea.qdt@qualcommdatacenter.com>2017-10-18 16:49:45 -0400
commit067fdad9c0295f278912eddf54725a64e927d974 (patch)
treeea90bb9a14d5838d810c5519604d0b73440695ae
parent6af41edc29a791942588167d9f6a1fced3bfd402 (diff)
downloadcoreclr-067fdad9c0295f278912eddf54725a64e927d974.tar.gz
coreclr-067fdad9c0295f278912eddf54725a64e927d974.tar.bz2
coreclr-067fdad9c0295f278912eddf54725a64e927d974.zip
[Arm64] Support flag FEATURE_SIMD
-rw-r--r--src/inc/corjit.h8
-rw-r--r--src/jit/jitee.h13
2 files changed, 17 insertions, 4 deletions
diff --git a/src/inc/corjit.h b/src/inc/corjit.h
index 61498594a3..6f217f14d4 100644
--- a/src/inc/corjit.h
+++ b/src/inc/corjit.h
@@ -113,7 +113,6 @@ public:
CORJIT_FLAG_USE_AVX = 14,
CORJIT_FLAG_USE_AVX2 = 15,
CORJIT_FLAG_USE_AVX_512 = 16,
- CORJIT_FLAG_FEATURE_SIMD = 17,
#else // !defined(_TARGET_X86_) && !defined(_TARGET_AMD64_)
@@ -121,10 +120,15 @@ public:
CORJIT_FLAG_UNUSED7 = 14,
CORJIT_FLAG_UNUSED8 = 15,
CORJIT_FLAG_UNUSED9 = 16,
- CORJIT_FLAG_UNUSED10 = 17,
#endif // !defined(_TARGET_X86_) && !defined(_TARGET_AMD64_)
+ #if defined(_TARGET_X86_) || defined(_TARGET_AMD64_) || defined(_TARGET_ARM64_)
+ CORJIT_FLAG_FEATURE_SIMD = 17,
+ #else
+ CORJIT_FLAG_UNUSED10 = 17,
+ #endif // !(defined(_TARGET_X86_) || defined(_TARGET_AMD64_) || defined(_TARGET_ARM64_))
+
CORJIT_FLAG_MAKEFINALCODE = 18, // Use the final code generator, i.e., not the interpreter.
CORJIT_FLAG_READYTORUN = 19, // Use version-resilient code generation
CORJIT_FLAG_PROF_ENTERLEAVE = 20, // Instrument prologues/epilogues
diff --git a/src/jit/jitee.h b/src/jit/jitee.h
index 4c2359a7a3..3da1093b01 100644
--- a/src/jit/jitee.h
+++ b/src/jit/jitee.h
@@ -45,7 +45,6 @@ public:
JIT_FLAG_USE_AVX = 14,
JIT_FLAG_USE_AVX2 = 15,
JIT_FLAG_USE_AVX_512 = 16,
- JIT_FLAG_FEATURE_SIMD = 17,
#else // !defined(_TARGET_X86_) && !defined(_TARGET_AMD64_)
@@ -53,10 +52,15 @@ public:
JIT_FLAG_UNUSED7 = 14,
JIT_FLAG_UNUSED8 = 15,
JIT_FLAG_UNUSED9 = 16,
- JIT_FLAG_UNUSED10 = 17,
#endif // !defined(_TARGET_X86_) && !defined(_TARGET_AMD64_)
+ #if defined(_TARGET_X86_) || defined(_TARGET_AMD64_) || defined(_TARGET_ARM64_)
+ JIT_FLAG_FEATURE_SIMD = 17,
+ #else
+ JIT_FLAG_UNUSED10 = 17,
+ #endif // !(defined(_TARGET_X86_) || defined(_TARGET_AMD64_) || defined(_TARGET_ARM64_))
+
JIT_FLAG_MAKEFINALCODE = 18, // Use the final code generator, i.e., not the interpreter.
JIT_FLAG_READYTORUN = 19, // Use version-resilient code generation
JIT_FLAG_PROF_ENTERLEAVE = 20, // Instrument prologues/epilogues
@@ -203,6 +207,11 @@ public:
FLAGS_EQUAL(CORJIT_FLAGS::CORJIT_FLAG_USE_AVX, JIT_FLAG_USE_AVX);
FLAGS_EQUAL(CORJIT_FLAGS::CORJIT_FLAG_USE_AVX2, JIT_FLAG_USE_AVX2);
FLAGS_EQUAL(CORJIT_FLAGS::CORJIT_FLAG_USE_AVX_512, JIT_FLAG_USE_AVX_512);
+
+#endif
+
+#if defined(_TARGET_X86_) || defined(_TARGET_AMD64_) || defined(_TARGET_ARM64_)
+
FLAGS_EQUAL(CORJIT_FLAGS::CORJIT_FLAG_FEATURE_SIMD, JIT_FLAG_FEATURE_SIMD);
#endif