summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHyeongseok Oh <hseok82.oh@samsung.com>2017-08-01 10:44:51 +0900
committerHyeongseok Oh <hseok82.oh@samsung.com>2017-08-01 10:44:51 +0900
commita3e818db764fcc0629163d4a92e17443d33bbce1 (patch)
tree6407a7274a0cc2cda0878cfdb0c48a22525c98f8 /src
parent8c7d6b3d2b6955d05e7289a09755a25d252273b1 (diff)
downloadcoreclr-a3e818db764fcc0629163d4a92e17443d33bbce1.tar.gz
coreclr-a3e818db764fcc0629163d4a92e17443d33bbce1.tar.bz2
coreclr-a3e818db764fcc0629163d4a92e17443d33bbce1.zip
[RyuJIT/ARM32] Remove NYI: using zero register
We can remove NYI to using zero register to assign constant zero argument. There is no zero register on ARM32. (src/jit/registerarm32.h) So we can change the NYI to unreached() assertion.
Diffstat (limited to 'src')
-rw-r--r--src/jit/codegenarmarch.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/jit/codegenarmarch.cpp b/src/jit/codegenarmarch.cpp
index f40c33cc03..77d23e452b 100644
--- a/src/jit/codegenarmarch.cpp
+++ b/src/jit/codegenarmarch.cpp
@@ -540,13 +540,15 @@ void CodeGen::genPutArgStk(GenTreePutArgStk* treeNode)
// If it is contained then source must be the integer constant zero
if (source->isContained())
{
+#ifdef _TARGET_ARM64_
assert(source->OperGet() == GT_CNS_INT);
assert(source->AsIntConCommon()->IconValue() == 0);
- NYI_ARM("genPutArgStk: contained zero source");
-#ifdef _TARGET_ARM64_
emit->emitIns_S_R(storeIns, storeAttr, REG_ZR, varNumOut, argOffsetOut);
-#endif // _TARGET_ARM64_
+#else // !_TARGET_ARM64_
+ // There is no zero register on ARM32
+ unreached();
+#endif // !_TARGET_ARM64
}
else
{