summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Methodical/explicit/misc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/JIT/Methodical/explicit/misc')
-rw-r--r--tests/src/JIT/Methodical/explicit/misc/_il_dbgrefarg_box_f8.ilproj43
-rw-r--r--tests/src/JIT/Methodical/explicit/misc/_il_relrefarg_box_f8.ilproj42
-rw-r--r--tests/src/JIT/Methodical/explicit/misc/refarg_box_f8.il133
3 files changed, 218 insertions, 0 deletions
diff --git a/tests/src/JIT/Methodical/explicit/misc/_il_dbgrefarg_box_f8.ilproj b/tests/src/JIT/Methodical/explicit/misc/_il_dbgrefarg_box_f8.ilproj
new file mode 100644
index 0000000000..1eccdb4c0c
--- /dev/null
+++ b/tests/src/JIT/Methodical/explicit/misc/_il_dbgrefarg_box_f8.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>Full</DebugType>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="refarg_box_f8.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/Methodical/explicit/misc/_il_relrefarg_box_f8.ilproj b/tests/src/JIT/Methodical/explicit/misc/_il_relrefarg_box_f8.ilproj
new file mode 100644
index 0000000000..c4bbf998e6
--- /dev/null
+++ b/tests/src/JIT/Methodical/explicit/misc/_il_relrefarg_box_f8.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="refarg_box_f8.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/Methodical/explicit/misc/refarg_box_f8.il b/tests/src/JIT/Methodical/explicit/misc/refarg_box_f8.il
new file mode 100644
index 0000000000..db1a4a641a
--- /dev/null
+++ b/tests/src/JIT/Methodical/explicit/misc/refarg_box_f8.il
@@ -0,0 +1,133 @@
+
+
+.assembly extern mscorlib
+{
+
+
+
+
+}
+.assembly 'refarg_box_f8'
+{
+
+
+
+}
+.module 'refarg_box_f8.exe'
+.namespace Test
+{
+ .class private auto ansi App extends [mscorlib]System.Object
+ {
+ .field private static class System.Object s_aa
+ .method private hidebysig static void
+ Litter() il managed
+ {
+ .maxstack 2
+ .locals (int32 V_0,
+ int32[] V_1)
+ IL_0000: call void [mscorlib]System.GC::Collect()
+ IL_0005: ldc.i4.0
+ IL_0006: stloc.0
+ IL_0007: br.s IL_0018
+
+ IL_0009: ldc.i4 0x3e8
+ IL_000e: newarr [mscorlib]System.Int32
+ IL_0013: stloc.1
+ IL_0014: ldloc.0
+ IL_0015: ldc.i4.1
+ IL_0016: add
+ IL_0017: stloc.0
+ IL_0018: ldloc.0
+ IL_0019: ldc.i4 0x3e8
+ IL_001e: blt.s IL_0009
+
+ IL_0020: call void [mscorlib]System.GC::Collect()
+ call void [mscorlib]System.GC::WaitForPendingFinalizers()
+ IL_0025: ret
+ }
+
+ .method private hidebysig static int32
+ Test(float64& n) il managed
+ {
+ .maxstack 4
+ .locals (int32 V_0)
+ IL_0000: ldnull
+ IL_0001: stsfld class System.Object Test.App::s_aa
+ IL_0006: call void Test.App::Litter()
+ IL_000b: ldarg.0
+ IL_000c: ldind.r8
+ dup
+ call void [System.Console]System.Console::WriteLine(float64)
+ IL_000d: ldc.r8 3.1415926535896999
+ dup
+ call void [System.Console]System.Console::WriteLine(float64)
+ IL_0016: beq.s IL_0026
+
+ IL_0018: ldstr "*** failed ***"
+ IL_001d: call void [System.Console]System.Console::WriteLine(class System.String)
+ IL_0022: ldc.i4.1
+ IL_0023: stloc.0
+ IL_0024: br.s IL_0034
+
+ IL_0026: ldstr "*** passed ***"
+ IL_002b: call void [System.Console]System.Console::WriteLine(class System.String)
+ IL_0030: ldc.i4 0x64
+ IL_0031: stloc.0
+ IL_0032: br.s IL_0034
+
+ IL_0034: ldloc.0
+ IL_0035: ret
+ }
+
+ .method private hidebysig static int32
+ Main() il managed
+ {
+ .entrypoint
+ .maxstack 1
+ .locals (float64 ZZZZ,
+ int32 V_1,
+ int32 V_2)
+ IL_0000: ldc.r8 0.
+ IL_0009: stloc.0
+
+ ldsfld class System.Object Test.App::s_aa
+ unbox [mscorlib]System.Double
+
+ IL_000c: call int32 Test.App::Test(float64&)
+ IL_0011: stloc.1
+ IL_0012: call void [mscorlib]System.GC::Collect()
+ IL_0017: call void [mscorlib]System.GC::WaitForPendingFinalizers()
+ IL_001c: ldloc.1
+ IL_001d: stloc.2
+ IL_001e: br.s IL_0020
+
+ IL_0020: ldloc.2
+ IL_0021: ret
+ }
+
+ .method public hidebysig specialname rtspecialname static
+ void .cctor() il managed
+ {
+ .maxstack 1
+ .locals (float64 V_0)
+ IL_0000: ldc.r8 3.1415926535896999
+ IL_0009: stloc.0
+ IL_000a: ldloc.s V_0
+ IL_000c: box [mscorlib]System.Double
+ IL_0011: stsfld class System.Object Test.App::s_aa
+ IL_0016: ret
+ }
+
+ .method public hidebysig specialname rtspecialname
+ instance void .ctor() il managed
+ {
+ .maxstack 8
+ IL_0000: ldarg.0
+ IL_0001: call instance void [mscorlib]System.Object::.ctor()
+ IL_0006: ret
+ }
+
+ }
+
+}
+