diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2015-06-10 13:11:59 -0700 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2015-06-10 21:31:41 -0700 |
commit | 937180e726dd08c84852a835bd711157769aed2b (patch) | |
tree | 8b9c350368cb9f2c57c2fea77d4cc90b51a80dd2 /tests/src/JIT/Methodical/ELEMENT_TYPE_IU/i_flow_merge.il | |
parent | c65178cbb205f8573c84791a31836fb3a7dd237e (diff) | |
download | coreclr-937180e726dd08c84852a835bd711157769aed2b.tar.gz coreclr-937180e726dd08c84852a835bd711157769aed2b.tar.bz2 coreclr-937180e726dd08c84852a835bd711157769aed2b.zip |
Import the first batch of IL tests.
This set of tests is comprised of IL tests that:
- only reference APIs in .Net Core's System.Runtime,
System.Runtime.Extensions, and System.Threading contracts
- compile to a single executable,
- and expect no command line arguments at runtime.
Diffstat (limited to 'tests/src/JIT/Methodical/ELEMENT_TYPE_IU/i_flow_merge.il')
-rw-r--r-- | tests/src/JIT/Methodical/ELEMENT_TYPE_IU/i_flow_merge.il | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/tests/src/JIT/Methodical/ELEMENT_TYPE_IU/i_flow_merge.il b/tests/src/JIT/Methodical/ELEMENT_TYPE_IU/i_flow_merge.il new file mode 100644 index 0000000000..33a5a7ffe2 --- /dev/null +++ b/tests/src/JIT/Methodical/ELEMENT_TYPE_IU/i_flow_merge.il @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +// +// +.assembly extern mscorlib +{ } +.assembly 'test' +{ } +.class private auto ansi Test extends [mscorlib]System.Object +{ +.method private hidebysig static int32 Main() il managed +{ + .entrypoint + .maxstack 4 + .locals (int32, native int, native int) + ldc.i4.0 + dup + stloc.0 + stloc.1 + + ldc.i4 0x12345678 + stloc.2 + + ldc.i4.0 + br.s loop_begin +loop_begin: + dup + brfalse branch1 + ldloca 0 + ldstr "branch1" + call void [mscorlib]System.Console::WriteLine(class [mscorlib]System.String) + br.s merge1 +branch1: + ldstr "branch2" + call void [mscorlib]System.Console::WriteLine(class [mscorlib]System.String) + ldloca 1 +merge1: + ldloca 2 + ldind.i + stind.i + ldc.i4.1 + add + dup + ldc.i4.2 + ceq + brfalse.s loop_begin + pop + + ldloc.0 + ldloc.1 + add + ldloca 2 + ldind.i + sub + ldloc.2 + sub + ldc.i4 0x64 + add + ret +} // end of method 'Test::Main' + +.method public hidebysig specialname rtspecialname + instance void .ctor() il managed +{ + // Code size 7 (0x7) + .maxstack 8 + IL_0000: ldarg.0 + IL_0001: call instance void [mscorlib]System.Object::.ctor() + IL_0006: ret +} // end of method 'Test::.ctor' + +} // end of class 'Test' |