summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/CLR-x86-JIT/V1.2-M01/b07369/b07369.il
blob: 0b5ae7edf0cdb6abe78b52e5f8ed45142d5cc486 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

.assembly extern legacy library mscorlib {}
.assembly b07369 {}
.class ILGEN_0x1c9344b9 {
.field static	int16[] field_0x0
.method static int32 Method_0xcf54fbcb() {
.maxstack	13
.locals (int8 local_0x3,unsigned int8[] local_0x4,native int local_0x8)
 ldc.i4 0xad970933 
 stloc local_0x3
 ldc.i4 255
 newarr [mscorlib]System.Byte 
 stloc local_0x4
 ldc.i4 0x3bed5030 
 stloc local_0x8

ldc.i4 255
 newarr [mscorlib]System.Int16 
 stsfld int16[] ILGEN_0x1c9344b9::field_0x0

Start_Orphan_0:
 ldsfld int16[] ILGEN_0x1c9344b9::field_0x0
 ldloc local_0x3
 ldloc local_0x8
 blt.un Branch_0x2
 ldloc local_0x4
 ldlen
 br Branch_0x3
 Branch_0x2:
 ldsfld int16[] ILGEN_0x1c9344b9::field_0x0
 ldlen
 Branch_0x3:
 ldelema [mscorlib]System.Int16

Start_Orphan_3:
 ldsfld int16[] ILGEN_0x1c9344b9::field_0x0
 ldc.i4 55
 ldc.i4 0x6cedf978
 stelem.i2
 Branch_0x5:
End_Orphan_3:

 ldloc local_0x8

Start_Orphan_6:
 ldloca local_0x8
 pop
End_Orphan_6:

 stind.i2
End_Orphan_0:

ldc.i4 55
EOM: ret
}
.method static int32 Main() {
.entrypoint
.maxstack	20
.try
{
call int32 ILGEN_0x1c9344b9::Method_0xcf54fbcb()
leave FAIL
}
catch [mscorlib]System.IndexOutOfRangeException
{
leave PASS
}
PASS:
ldc.i4 100
 ret
FAIL:
ldc.i4 1
ret
}

}