diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2015-12-08 11:52:37 -0800 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2015-12-10 15:54:42 -0800 |
commit | fc362c8fe8227bf90fe10295757df92b4df78e2f (patch) | |
tree | 657e7b636e7e9ec0475ee6d17c5c9b960a057943 /tests/src/JIT/Regression/JitBlue/devdiv_902271 | |
parent | a4e23d6bb1b65f961b168769154ce1b53ee2bfc3 (diff) | |
download | coreclr-fc362c8fe8227bf90fe10295757df92b4df78e2f.tar.gz coreclr-fc362c8fe8227bf90fe10295757df92b4df78e2f.tar.bz2 coreclr-fc362c8fe8227bf90fe10295757df92b4df78e2f.zip |
Import missing JIT tests.
These tests were thought to have been ported earlier.
Diffstat (limited to 'tests/src/JIT/Regression/JitBlue/devdiv_902271')
3 files changed, 167 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/JitBlue/devdiv_902271/DevDiv_902271.il b/tests/src/JIT/Regression/JitBlue/devdiv_902271/DevDiv_902271.il new file mode 100644 index 0000000000..042aa48128 --- /dev/null +++ b/tests/src/JIT/Regression/JitBlue/devdiv_902271/DevDiv_902271.il @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +.assembly extern System.Console +{ + .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) + .ver 4:0:0:0 +} + +.assembly extern mscorlib {} +.assembly test {} +.module test.exe + +.class Repro +{ + .field private static class [mscorlib]System.Func`2<int32,int32> d1 + .field private static class [mscorlib]System.Func`6<int32,int32,int32,int32,int32,int32> d2 + + .method private hidebysig static int32 Work1(int32 x) cil managed + { + .maxstack 8 + ldarg.0 + brtrue.s TAILCALL1 + + ldc.i4.s 100 + ret + + TAILCALL1: + ldsfld class [mscorlib]System.Func`6<int32,int32,int32,int32,int32,int32> Repro::d2 + ldarg.0 + ldc.i4.1 + sub + ldc.i4.1 + ldc.i4.2 + ldc.i4.3 + ldc.i4.4 + tail. + callvirt instance !5 class [mscorlib]System.Func`6<int32,int32,int32,int32,int32,int32>::Invoke(!0, + !1, + !2, + !3, + !4) + ret + } + + .method private hidebysig static int32 Work2(int32 x, int32 a, int32 b, int32 c, int32 d) cil managed + { + .maxstack 8 + ldarg.0 + brtrue.s TAILCALL2 + + ldc.i4.s 100 + ret + + TAILCALL2: + ldsfld class [mscorlib]System.Func`2<int32,int32> Repro::d1 + ldarg.0 + ldc.i4.1 + sub + tail. + callvirt instance !1 class [mscorlib]System.Func`2<int32,int32>::Invoke(!0) + ret + } + + .method private hidebysig static int32 Main() cil managed + { + .entrypoint + .maxstack 8 + ldnull + ldftn int32 Repro::Work1(int32) + newobj instance void class [mscorlib]System.Func`2<int32,int32>::.ctor(object, + native int) + stsfld class [mscorlib]System.Func`2<int32,int32> Repro::d1 + ldnull + ldftn int32 Repro::Work2(int32, + int32, + int32, + int32, + int32) + newobj instance void class [mscorlib]System.Func`6<int32,int32,int32,int32,int32,int32>::.ctor(object, + native int) + stsfld class [mscorlib]System.Func`6<int32,int32,int32,int32,int32,int32> Repro::d2 + ldsfld class [mscorlib]System.Func`2<int32,int32> Repro::d1 + ldc.i4 0xf4240 + callvirt instance !1 class [mscorlib]System.Func`2<int32,int32>::Invoke(!0) + + ldstr "PASS!" + call void [System.Console]System.Console::WriteLine(string) + ret + } +}
\ No newline at end of file diff --git a/tests/src/JIT/Regression/JitBlue/devdiv_902271/DevDiv_902271.ilproj b/tests/src/JIT/Regression/JitBlue/devdiv_902271/DevDiv_902271.ilproj new file mode 100644 index 0000000000..bf31e3ff96 --- /dev/null +++ b/tests/src/JIT/Regression/JitBlue/devdiv_902271/DevDiv_902271.ilproj @@ -0,0 +1,49 @@ +<?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> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> + <OutputType>Exe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <FileAlignment>512</FileAlignment> + <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> + <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages</ReferencePath> + <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> + <RestorePackages>true</RestorePackages> + <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> + <ItemGroup> + <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> + <Visible>False</Visible> + </CodeAnalysisDependentAssemblyPaths> + </ItemGroup> + <PropertyGroup> + + </PropertyGroup> + <ItemGroup> + <Compile Include="DevDiv_902271.il" /> + </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>
\ No newline at end of file diff --git a/tests/src/JIT/Regression/JitBlue/devdiv_902271/app.config b/tests/src/JIT/Regression/JitBlue/devdiv_902271/app.config new file mode 100644 index 0000000000..8077c95440 --- /dev/null +++ b/tests/src/JIT/Regression/JitBlue/devdiv_902271/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 |