Fixing hwintrinsicArm64 to return nullptr for the Base_As intrinsics if featureSimd...
authorTanner Gooding <tagoo@outlook.com>
Wed, 27 Feb 2019 20:14:00 +0000 (12:14 -0800)
committerGitHub <noreply@github.com>
Wed, 27 Feb 2019 20:14:00 +0000 (12:14 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/5c95e296a3f67d6d04146f455fe364e2fd9e9ddc

src/coreclr/src/jit/hwintrinsicArm64.cpp

index 2309f75..7fff58c 100644 (file)
@@ -312,6 +312,11 @@ GenTree* Compiler::impHWIntrinsic(NamedIntrinsic        intrinsic,
         case NI_Base_Vector128_AsUInt32:
         case NI_Base_Vector128_AsUInt64:
         {
+            if (!featureSIMD)
+            {
+                return nullptr;
+            }
+
             // We fold away the cast here, as it only exists to satisfy
             // the type system. It is safe to do this here since the retNode type
             // and the signature return type are both the same TYP_SIMD.