summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/VS-ia64-JIT/M00/b84128
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/VS-ia64-JIT/M00/b84128
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/VS-ia64-JIT/M00/b84128')
-rw-r--r--tests/src/JIT/Regression/VS-ia64-JIT/M00/b84128/app.config27
-rw-r--r--tests/src/JIT/Regression/VS-ia64-JIT/M00/b84128/b84128.il130
-rw-r--r--tests/src/JIT/Regression/VS-ia64-JIT/M00/b84128/b84128.ilproj42
3 files changed, 199 insertions, 0 deletions
diff --git a/tests/src/JIT/Regression/VS-ia64-JIT/M00/b84128/app.config b/tests/src/JIT/Regression/VS-ia64-JIT/M00/b84128/app.config
new file mode 100644
index 0000000000..6f7bbd9d2b
--- /dev/null
+++ b/tests/src/JIT/Regression/VS-ia64-JIT/M00/b84128/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/VS-ia64-JIT/M00/b84128/b84128.il b/tests/src/JIT/Regression/VS-ia64-JIT/M00/b84128/b84128.il
new file mode 100644
index 0000000000..64b015d904
--- /dev/null
+++ b/tests/src/JIT/Regression/VS-ia64-JIT/M00/b84128/b84128.il
@@ -0,0 +1,130 @@
+
+
+.assembly extern System.Console
+{
+ .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
+ .ver 4:0:0:0
+}
+.assembly extern legacy library mscorlib {}
+.assembly ldobj.exe{
+
+}
+
+.class public _ldobj {
+
+.method public static int32 main() {
+.entrypoint
+.locals (class [mscorlib]System.IO.TextWriter,value class valClass,value class valClass)
+.maxstack 2
+ call class [mscorlib]System.IO.TextWriter [System.Console]System.Console::get_Out()
+ stloc 0
+
+ newobj instance void valClass::.ctor()
+ stloc 1
+ newobj instance void valClass::.ctor()
+ stloc 2
+ ldloca 1
+ ldc.i4 0xFAFAFAFA
+ stfld int32 valClass::Field
+ ldc.i4 0xDBDBDBDB
+ stsfld int32 valClass::SField
+
+ ldloca 2
+ ldc.i4 0x00000000
+ stfld int32 valClass::Field
+
+ ldloca 1
+ ldfld int32 valClass::Field
+ ldc.i4 0xFAFAFAFA
+ ceq
+ brfalse failInit
+ ldsfld int32 valClass::SField
+ ldc.i4 0xDBDBDBDB
+ ceq
+ brfalse failInit
+ ldloca 2
+ ldfld int32 valClass::Field
+ ldc.i4 0x00000000
+ ceq
+ brtrue ldlocaTest
+failInit:
+ ldloc 0
+ ldstr "one _or both val classes failed initialization."
+
+
+ callvirt instance void [mscorlib]System.IO.TextWriter::WriteLine(class [mscorlib]System.String)
+ br fail
+
+ldlocaTest:
+ ldloca 1
+ ldobj valClass
+
+ ldloca 2
+ call void _ldobj::changeData(value class valClass,value class valClass*)
+
+ ldloca 1
+ ldfld int32 valClass::Field
+ ldc.i4 0xFAFAFAFA
+ ceq
+ brfalse failTest
+ ldloca 2
+ ldfld int32 valClass::Field
+ ldc.i4 0xBBBBBBBB
+ ceq
+ brfalse failTest
+ ldsfld int32 valClass::SField
+ ldc.i4 0xDDDDDDDD
+ ceq
+ brtrue pass
+failTest:
+ ldloc 0
+ ldstr "failure after initialization."
+
+
+
+
+ callvirt instance void [mscorlib]System.IO.TextWriter::WriteLine(class [mscorlib]System.String)
+ br fail
+
+pass:
+ ldloc 0
+ ldstr "_ldobj tests PASS"
+
+
+ callvirt instance void [mscorlib]System.IO.TextWriter::WriteLine(class [mscorlib]System.String)
+ ldc.i4 100
+ br end
+fail:
+ ldloc 0
+ ldstr "!!! FAILURE !!! LDOBJ TEST(S) FAILED !!! FAILURE !!!"
+
+
+ callvirt instance void [mscorlib]System.IO.TextWriter::WriteLine(class [mscorlib]System.String)
+ ldc.i4 0x0
+ br end
+end:
+ ret
+}
+
+.method public static void changeData(value class valClass,value class valClass*) {
+.maxstack 2
+ ldarga 0
+ ldc.i4 0xBBBBBBBB
+ stfld int32 valClass::Field
+ ldc.i4 0xDDDDDDDD
+ stsfld int32 valClass::SField
+ ldarg 1
+ ldarga 0
+ cpobj valClass
+ ret
+}
+
+}
+.class public value sealed valClass {
+.field public int32 Field
+.field public static int32 SField
+
+ .method public public void .ctor(){
+ ret
+ }
+}
diff --git a/tests/src/JIT/Regression/VS-ia64-JIT/M00/b84128/b84128.ilproj b/tests/src/JIT/Regression/VS-ia64-JIT/M00/b84128/b84128.ilproj
new file mode 100644
index 0000000000..abe151e84b
--- /dev/null
+++ b/tests/src/JIT/Regression/VS-ia64-JIT/M00/b84128/b84128.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="b84128.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>