diff options
author | Pat Gavlin <pgavlin@gmail.com> | 2016-07-01 12:33:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-01 12:33:16 -0700 |
commit | 07fd84e41dfc465e6cd519bc29b05a792f3ba52f (patch) | |
tree | 8cb35c4fb184e9c49387523b512dba3e2d30b777 /tests/src | |
parent | fc8689e2486d09cd17f40538ac06ce5aafd2d87d (diff) | |
parent | a29cdf2ff411e2ab3e63592139f89d4b4dce0a37 (diff) | |
download | coreclr-07fd84e41dfc465e6cd519bc29b05a792f3ba52f.tar.gz coreclr-07fd84e41dfc465e6cd519bc29b05a792f3ba52f.tar.bz2 coreclr-07fd84e41dfc465e6cd519bc29b05a792f3ba52f.zip |
Merge pull request #6031 from mikedn/x86-float-unspill
Remove misplaced call to genUnspillRegIfNeeded
Diffstat (limited to 'tests/src')
3 files changed, 113 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/JitBlue/GitHub_5047/GitHub_5047.cs b/tests/src/JIT/Regression/JitBlue/GitHub_5047/GitHub_5047.cs new file mode 100644 index 0000000000..9636a91409 --- /dev/null +++ b/tests/src/JIT/Regression/JitBlue/GitHub_5047/GitHub_5047.cs @@ -0,0 +1,46 @@ +// 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.Runtime.CompilerServices; + +class Program +{ + [MethodImpl(MethodImplOptions.NoInlining)] + public static float Get42() + { + return 42; + } + + [MethodImpl(MethodImplOptions.NoInlining)] + public static float Get43() + { + return 43; + } + + [MethodImpl(MethodImplOptions.NoInlining)] + public static float Test() + { + float x = Get42(); + x *= Get43(); + return x; + } + + static int Main() + { + const int Pass = 100; + const int Fail = -1; + + if (Test() == 1806) + { + Console.WriteLine("Passed"); + return Pass; + } + else + { + Console.WriteLine("Failed"); + return Fail; + } + } +} diff --git a/tests/src/JIT/Regression/JitBlue/GitHub_5047/GitHub_5047.csproj b/tests/src/JIT/Regression/JitBlue/GitHub_5047/GitHub_5047.csproj new file mode 100644 index 0000000000..25691a0a85 --- /dev/null +++ b/tests/src/JIT/Regression/JitBlue/GitHub_5047/GitHub_5047.csproj @@ -0,0 +1,40 @@ +<?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> + <AssemblyName>$(MSBuildProjectName)</AssemblyName> + <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> + <OutputType>Exe</OutputType> + <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> + <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> + <NuGetPackageImportStamp>7a9bfb7d</NuGetPackageImportStamp> + </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></DebugType> + <Optimize>True</Optimize> + </PropertyGroup> + <ItemGroup> + <Compile Include="$(MSBuildProjectName).cs" /> + </ItemGroup> + <ItemGroup> + <None Include="$(JitPackagesConfigFileDirectory)minimal\project.json" /> + <None Include="app.config" /> + </ItemGroup> + <ItemGroup> + <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> + </ItemGroup> + <PropertyGroup> + <ProjectJson>$(JitPackagesConfigFileDirectory)minimal\project.json</ProjectJson> + <ProjectLockJson>$(JitPackagesConfigFileDirectory)minimal\project.lock.json</ProjectLockJson> + </PropertyGroup> + <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> + <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "> + </PropertyGroup> +</Project> diff --git a/tests/src/JIT/Regression/JitBlue/GitHub_5047/app.config b/tests/src/JIT/Regression/JitBlue/GitHub_5047/app.config new file mode 100644 index 0000000000..62803f5972 --- /dev/null +++ b/tests/src/JIT/Regression/JitBlue/GitHub_5047/app.config @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<configuration> + <runtime> + <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> + <dependentAssembly> + <assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-4.0.20.0" newVersion="4.0.20.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="System.Text.Encoding" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="System.Threading.Tasks" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="System.IO" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /> + </dependentAssembly> + <dependentAssembly> + <assemblyIdentity name="System.Reflection" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> + <bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /> + </dependentAssembly> + </assemblyBinding> + </runtime> +</configuration>
\ No newline at end of file |