diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2016-09-08 09:36:20 -0700 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2016-09-08 10:37:58 -0700 |
commit | 57d6887745844ea882b3dde4c54155e4f57f41ff (patch) | |
tree | 362c2027e25738370e0b4278f9773f47f2a1b881 | |
parent | ddc3d67def51efe26f613557db5701f7c016207c (diff) | |
download | coreclr-57d6887745844ea882b3dde4c54155e4f57f41ff.tar.gz coreclr-57d6887745844ea882b3dde4c54155e4f57f41ff.tar.bz2 coreclr-57d6887745844ea882b3dde4c54155e4f57f41ff.zip |
Return false from isRegPairType for RyuJIT.
The RyuJIT backend does not use regpair types, so this method should
simply return false when that backend is in use. In the future we
should consider removing this method (and other regpair-related code).
Fixes #7089.
-rw-r--r-- | src/jit/target.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jit/target.h b/src/jit/target.h index fa0b18af3e..82e7f9e4c6 100644 --- a/src/jit/target.h +++ b/src/jit/target.h @@ -2277,6 +2277,9 @@ inline regNumber regNextOfType(regNumber reg, var_types type) inline bool isRegPairType(int /* s/b "var_types" */ type) { +#if !CPU_LONG_USES_REGPAIR + return false; +#else #ifdef _TARGET_64BIT_ return false; #elif CPU_HAS_FP_SUPPORT @@ -2284,6 +2287,7 @@ inline bool isRegPairType(int /* s/b "var_types" */ type) #else return type == TYP_LONG || type == TYP_DOUBLE; #endif +#endif // CPU_LONG_USES_REGPAIR } inline bool isFloatRegType(int /* s/b "var_types" */ type) |