summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/Dev11
diff options
context:
space:
mode:
authorRichard L Ford <richford@microsoft.com>2015-12-17 21:23:42 -0800
committerRichard L Ford <richford@microsoft.com>2015-12-22 22:12:54 -0800
commita60e65ab1549d0c584a357f30a4411502b9c1791 (patch)
tree1ce7f4527ae36b975bb3e1ea43347d00b3f239ec /tests/src/JIT/Regression/Dev11
parent428f413f917a610eae457f44b1870d04ff1f3775 (diff)
downloadcoreclr-a60e65ab1549d0c584a357f30a4411502b9c1791.tar.gz
coreclr-a60e65ab1549d0c584a357f30a4411502b9c1791.tar.bz2
coreclr-a60e65ab1549d0c584a357f30a4411502b9c1791.zip
Port additional desktop tests to CoreClr
Add exclusions for tests that are failing but that we expect to be able to get working.
Diffstat (limited to 'tests/src/JIT/Regression/Dev11')
-rw-r--r--tests/src/JIT/Regression/Dev11/External/dev11_149090/project.lock.json2
-rw-r--r--tests/src/JIT/Regression/Dev11/dev10_865840/app.config27
-rw-r--r--tests/src/JIT/Regression/Dev11/dev10_865840/dev10_865840.il71
-rw-r--r--tests/src/JIT/Regression/Dev11/dev10_865840/dev10_865840.ilproj42
-rw-r--r--tests/src/JIT/Regression/Dev11/dev11_10427/app.config27
-rw-r--r--tests/src/JIT/Regression/Dev11/dev11_10427/conv_ovf_i4.il76
-rw-r--r--tests/src/JIT/Regression/Dev11/dev11_10427/conv_ovf_i4.ilproj43
7 files changed, 287 insertions, 1 deletions
diff --git a/tests/src/JIT/Regression/Dev11/External/dev11_149090/project.lock.json b/tests/src/JIT/Regression/Dev11/External/dev11_149090/project.lock.json
index 1dc28330b8..0e0392c941 100644
--- a/tests/src/JIT/Regression/Dev11/External/dev11_149090/project.lock.json
+++ b/tests/src/JIT/Regression/Dev11/External/dev11_149090/project.lock.json
@@ -1575,4 +1575,4 @@
],
"DNXCore,Version=v5.0": []
}
-}
+} \ No newline at end of file
diff --git a/tests/src/JIT/Regression/Dev11/dev10_865840/app.config b/tests/src/JIT/Regression/Dev11/dev10_865840/app.config
new file mode 100644
index 0000000000..6f7bbd9d2b
--- /dev/null
+++ b/tests/src/JIT/Regression/Dev11/dev10_865840/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>
diff --git a/tests/src/JIT/Regression/Dev11/dev10_865840/dev10_865840.il b/tests/src/JIT/Regression/Dev11/dev10_865840/dev10_865840.il
new file mode 100644
index 0000000000..9d034cd0c8
--- /dev/null
+++ b/tests/src/JIT/Regression/Dev11/dev10_865840/dev10_865840.il
@@ -0,0 +1,71 @@
+
+
+
+
+
+.assembly extern mscorlib
+{
+ .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
+ .ver 2:0:0:0
+}
+.assembly repro
+{
+ .custom instance void [mscorlib]System.Security.SecurityCriticalAttribute::.ctor() = ( 01 00 00 00 )
+ .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 )
+ .ver 0:0:0:0
+}
+.module dev10_865840.exe
+.imagebase 0x00400000
+.file alignment 0x00000200
+.stackreserve 0x00100000
+.subsystem 0x0003
+.corflags 0x00000001
+
+
+
+.class private sequential ansi sealed beforefieldinit DifRepro.MyInt
+ extends [mscorlib]System.ValueType
+{
+ .field public native int i
+}
+
+.class private auto ansi beforefieldinit DifRepro.Program
+ extends [mscorlib]System.Object
+{
+ .field private static class [mscorlib]System.Security.Permissions.SecurityPermission _unmanagedCodePermission
+ .method public hidebysig static int32 Main() cil managed
+ {
+ .entrypoint
+ .maxstack 8
+ IL_0000: call void DifRepro.Program::Test()
+ IL_0005: ldc.i4 0x64
+ IL_000a: ret
+ }
+
+ .method private hidebysig static void Helper(valuetype DifRepro.MyInt& i) cil managed
+ {
+ .maxstack 8
+ IL_0000: ret
+ }
+
+ .method public hidebysig static reqsecobj
+ void Test() cil managed
+ {
+ .maxstack 8
+ IL_0000: ldc.i4.0
+ IL_0001: call void DifRepro.Program::Helper(valuetype DifRepro.MyInt&)
+ IL_0006: ldsfld class [mscorlib]System.Security.Permissions.SecurityPermission DifRepro.Program::_unmanagedCodePermission
+ IL_000b: brtrue.s IL_0018
+
+ IL_000d: ldc.i4.2
+ IL_000e: newobj instance void [mscorlib]System.Security.Permissions.SecurityPermission::.ctor(valuetype [mscorlib]System.Security.Permissions.SecurityPermissionFlag)
+ IL_0013: stsfld class [mscorlib]System.Security.Permissions.SecurityPermission DifRepro.Program::_unmanagedCodePermission
+ IL_0018: ldsfld class [mscorlib]System.Security.Permissions.SecurityPermission DifRepro.Program::_unmanagedCodePermission
+ IL_001d: callvirt instance void [mscorlib]System.Security.CodeAccessPermission::Demand()
+ IL_0022: ret
+ }
+
+}
+
+
+
diff --git a/tests/src/JIT/Regression/Dev11/dev10_865840/dev10_865840.ilproj b/tests/src/JIT/Regression/Dev11/dev10_865840/dev10_865840.ilproj
new file mode 100644
index 0000000000..c1e7b9ff4b
--- /dev/null
+++ b/tests/src/JIT/Regression/Dev11/dev10_865840/dev10_865840.ilproj
@@ -0,0 +1,42 @@
+<?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 .0\UITestExtensionPackages</ReferencePath>
+ <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>
+ <ItemGroup>
+ <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
+ <Visible>False</Visible>
+ </CodeAnalysisDependentAssemblyPaths>
+ </ItemGroup>
+ <PropertyGroup>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="dev10_865840.il" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="app.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
+ </ItemGroup>
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
+ </PropertyGroup>
+</Project>
diff --git a/tests/src/JIT/Regression/Dev11/dev11_10427/app.config b/tests/src/JIT/Regression/Dev11/dev11_10427/app.config
new file mode 100644
index 0000000000..6f7bbd9d2b
--- /dev/null
+++ b/tests/src/JIT/Regression/Dev11/dev11_10427/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>
diff --git a/tests/src/JIT/Regression/Dev11/dev11_10427/conv_ovf_i4.il b/tests/src/JIT/Regression/Dev11/dev11_10427/conv_ovf_i4.il
new file mode 100644
index 0000000000..5baa8f960f
--- /dev/null
+++ b/tests/src/JIT/Regression/Dev11/dev11_10427/conv_ovf_i4.il
@@ -0,0 +1,76 @@
+
+.assembly Conv_ovf_u4_Bug {}
+
+
+.assembly extern System.Console
+{
+ .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
+ .ver 4:0:0:0
+}
+.assembly extern mscorlib
+{
+.publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
+.ver 2:0:0:0
+}
+
+.method static public int32 main() il managed
+{
+.entrypoint
+.locals init ([0] int64 alpha, [1] int32 delta, [2] int32 result)
+
+.try
+{
+call int32 [mscorlib]System.Environment::get_TickCount()
+conv.i8
+ldc.i8 0x80000000
+or
+stloc.0
+ldc.i4 100
+stloc result
+
+ldloc.0
+ldc.i4.m1
+conv.u8
+and
+conv.ovf.i4
+stloc.1
+
+ldstr "First conv.ovf.i4 raised no exception. delta = "
+call void [System.Console]System.Console::Write(string)
+ldloc.1
+call void [System.Console]System.Console::WriteLine(int32)
+ldc.i4 101
+stloc result
+
+ldloc.0
+ldc.i4.m1
+conv.u8
+and
+
+stloc.0
+ldloc.0
+
+conv.ovf.i4
+stloc.1
+
+ldstr "Second conv.ovf.i4 raised no exception. delta = "
+call void [System.Console]System.Console::Write(string)
+ldloc.1
+call void [System.Console]System.Console::WriteLine(int32)
+
+leave.s EXIT
+}
+catch [mscorlib]System.Exception
+{
+callvirt instance class [mscorlib]System.Type [mscorlib]System.Exception::GetType()
+callvirt instance string [mscorlib]System.Reflection.MemberInfo::get_Name()
+call void [System.Console]System.Console::Write(string)
+
+leave.s EXIT
+}
+
+EXIT:
+ldloc result
+ret
+}
+
diff --git a/tests/src/JIT/Regression/Dev11/dev11_10427/conv_ovf_i4.ilproj b/tests/src/JIT/Regression/Dev11/dev11_10427/conv_ovf_i4.ilproj
new file mode 100644
index 0000000000..a706a4b9f4
--- /dev/null
+++ b/tests/src/JIT/Regression/Dev11/dev11_10427/conv_ovf_i4.ilproj
@@ -0,0 +1,43 @@
+<?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 .0\UITestExtensionPackages</ReferencePath>
+ <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>
+ <ItemGroup>
+ <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
+ <Visible>False</Visible>
+ </CodeAnalysisDependentAssemblyPaths>
+ </ItemGroup>
+ <PropertyGroup>
+ <DebugType>PdbOnly</DebugType>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="conv_ovf_i4.il" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="app.config" />
+ </ItemGroup>
+ <ItemGroup>
+ <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
+ </ItemGroup>
+ <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
+ <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' ">
+ </PropertyGroup>
+</Project>