diff options
author | Carol Eidt <carol.eidt@microsoft.com> | 2019-01-08 17:46:17 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-08 17:46:17 -0800 |
commit | 687ba57ae4e3df6aaa539898dea99ac2d918554a (patch) | |
tree | 986be4b71cdc3ed2c5c0d9d485b0d32cfec920df /tests | |
parent | d31cd214adbb14724a829f577b6861ed2239a03b (diff) | |
download | coreclr-687ba57ae4e3df6aaa539898dea99ac2d918554a.tar.gz coreclr-687ba57ae4e3df6aaa539898dea99ac2d918554a.tar.bz2 coreclr-687ba57ae4e3df6aaa539898dea99ac2d918554a.zip |
Copy address-taken SIMD intrinsic (#21884)
* Copy address-taken SIMD intrinsic
This occurs, for example, when boxing the result of a SIMD intrinsic. This was being handled for the HW intrinsic case, but not the SIMD Vector intrinsics. Also, eliminate `OperIsSimdHWIntrisic` since it redundantly checks for the case of a SIMD result, even though it was always called in a context where the result is known to be a struct type.
Fix #21854
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/JIT/Regression/JitBlue/GitHub_21854/GitHub_21854.cs | 27 | ||||
-rw-r--r-- | tests/src/JIT/Regression/JitBlue/GitHub_21854/GitHub_21854.csproj | 33 |
2 files changed, 60 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/JitBlue/GitHub_21854/GitHub_21854.cs b/tests/src/JIT/Regression/JitBlue/GitHub_21854/GitHub_21854.cs new file mode 100644 index 0000000000..00e0915fb1 --- /dev/null +++ b/tests/src/JIT/Regression/JitBlue/GitHub_21854/GitHub_21854.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; +using System.Numerics; + +using Point = System.Numerics.Vector2; + +namespace GitHub_21854 +{ + public class test + { + static int Main(string[] args) + { + try { + var unused = new object[] { Vector<int>.Zero }; + } + catch (Exception e) + { + Console.WriteLine("FAILED with exception: " + e.Message); + return -1; + } + return 100; + } + } +} diff --git a/tests/src/JIT/Regression/JitBlue/GitHub_21854/GitHub_21854.csproj b/tests/src/JIT/Regression/JitBlue/GitHub_21854/GitHub_21854.csproj new file mode 100644 index 0000000000..37a8837acd --- /dev/null +++ b/tests/src/JIT/Regression/JitBlue/GitHub_21854/GitHub_21854.csproj @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{2649FAFE-07BF-4F93-8120-BA9A69285ABB}</ProjectGuid> + <OutputType>Exe</OutputType> + <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> + <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> + </PropertyGroup> + <!-- Default configurations to help VS understand the configurations --> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "></PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "></PropertyGroup> + <PropertyGroup> + <DebugType>None</DebugType> + <Optimize>True</Optimize> + </PropertyGroup> + <ItemGroup> + <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> + <Visible>False</Visible> + </CodeAnalysisDependentAssemblyPaths> + </ItemGroup> + <ItemGroup> + <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> + </ItemGroup> + <ItemGroup> + <Compile Include="$(MSBuildProjectName).cs" /> + </ItemGroup> + <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> + <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "></PropertyGroup> +</Project> |