Skip to content

Commit e63f15b

Browse files
author
Sergey Andreenko
committed
Fix another IL test.
1 parent 02452ba commit e63f15b

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

src/tests/JIT/Directed/coverage/importer/Desktop/byrefsubbyref1.il

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@
1515
.class a extends [mscorlib]System.Object
1616
{
1717
.field static class ctest S_1
18-
.method public static int32 byrefsubbyref(class ctest& V_1, class ctest& V_2)
18+
.method public static native int byrefsubbyref(class ctest& V_1, class ctest& V_2)
1919
{
2020
ldarg 0
2121
ldarg 1
2222
sub
2323
ret
2424
}
25-
.method public static int32 byrefsubi4(class ctest& V_1, int32 V_2)
25+
.method public static native int byrefsubi4(class ctest& V_1, int32 V_2)
2626
{
2727
ldarg 0
2828
ldarg 1
2929
sub
3030
ret
3131
}
32-
.method public static int32 i4subbyref(int32, class ctest& V_2)
32+
.method public static native int i4subbyref(int32, class ctest& V_2)
3333
{
3434
ldarg 0
3535
ldarg 1
@@ -53,54 +53,54 @@ ret
5353
IL_0010:
5454
ldloca V_2
5555
ldloca V_1
56-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
56+
call native int a::byrefsubbyref(class ctest&, class ctest&)
5757
dup
5858
stloc.2
5959
call void [System.Console]System.Console::WriteLine(int32)
6060

6161
ldloca V_2
6262
ldc.i4 1
63-
call int32 a::byrefsubi4(class ctest&, int32)
63+
call native int a::byrefsubi4(class ctest&, int32)
6464
call void [System.Console]System.Console::WriteLine(int32)
6565

6666
ldc.i4 1
6767
ldloca V_1
68-
call int32 a::i4subbyref(int32, class ctest&)
68+
call native int a::i4subbyref(int32, class ctest&)
6969
call void [System.Console]System.Console::WriteLine(int32)
7070

7171
newobj instance void ctest::.ctor()
7272
stloc.0
7373
ldloca V_1
7474
ldsflda class ctest a::S_1
75-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
75+
call native int a::byrefsubbyref(class ctest&, class ctest&)
7676
newobj instance void ctest::.ctor()
7777
stloc.0
7878
ldloca V_1
79-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
79+
call native int a::byrefsubbyref(class ctest&, class ctest&)
8080
ldsflda class ctest a::S_1
81-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
81+
call native int a::byrefsubbyref(class ctest&, class ctest&)
8282
newobj instance void ctest::.ctor()
8383
stsfld class ctest a::S_1
8484
ldsflda class ctest a::S_1
85-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
85+
call native int a::byrefsubbyref(class ctest&, class ctest&)
8686
ldsflda class ctest a::S_1
87-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
87+
call native int a::byrefsubbyref(class ctest&, class ctest&)
8888
newobj instance void ctest::.ctor()
8989
stloc.0
9090
ldloca V_1
91-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
91+
call native int a::byrefsubbyref(class ctest&, class ctest&)
9292
ldsflda class ctest a::S_1
93-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
93+
call native int a::byrefsubbyref(class ctest&, class ctest&)
9494
newobj instance void ctest::.ctor()
9595
stloc.0
9696
ldloca V_1
97-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
97+
call native int a::byrefsubbyref(class ctest&, class ctest&)
9898
ldsflda class ctest a::S_1
99-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
99+
call native int a::byrefsubbyref(class ctest&, class ctest&)
100100
newobj instance void ctest::.ctor()
101101
stloc.0
102102
ldloca V_1
103-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
103+
call native int a::byrefsubbyref(class ctest&, class ctest&)
104104
call void [System.Console]System.Console::WriteLine(int32)
105105

106106
ldc.i4 100

src/tests/JIT/Directed/coverage/importer/byrefsubbyref1.il

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@
1111
.class a extends [mscorlib]System.Object
1212
{
1313
.field static class ctest S_1
14-
.method public static int32 byrefsubbyref(class ctest& V_1, class ctest& V_2)
14+
.method public static native int byrefsubbyref(class ctest& V_1, class ctest& V_2)
1515
{
1616
// op1: byref, op2: byref
1717
ldarg 0
1818
ldarg 1
1919
sub
2020
ret
2121
}
22-
.method public static int32 byrefsubi4(class ctest& V_1, int32 V_2)
22+
.method public static native int byrefsubi4(class ctest& V_1, int32 V_2)
2323
{
2424
// op1: byref, op2: int32
2525
ldarg 0
2626
ldarg 1
2727
sub
2828
ret
2929
}
30-
.method public static int32 i4subbyref(int32, class ctest& V_2)
30+
.method public static native int i4subbyref(int32, class ctest& V_2)
3131
{
3232
// op1: int32, op2: byref
3333
ldarg 0
@@ -41,7 +41,7 @@ ret
4141
.maxstack 2
4242
.locals init (class ctest V_1,
4343
class ctest V_2,
44-
int32 V_3)
44+
native int V_3)
4545
IL_0004: newobj instance void ctest::.ctor()
4646
IL_0009: stloc.0
4747
IL_000a: newobj instance void ctest::.ctor()
@@ -53,57 +53,57 @@ ret
5353
IL_0010:
5454
ldloca V_2
5555
ldloca V_1
56-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
56+
call native int a::byrefsubbyref(class ctest&, class ctest&)
5757
dup
5858
stloc.2
5959
call void [System.Console]System.Console::WriteLine(int32)
6060

6161
// op1: byref, op2: int
6262
ldloca V_2
6363
ldc.i4 1
64-
call int32 a::byrefsubi4(class ctest&, int32)
64+
call native int a::byrefsubi4(class ctest&, int32)
6565
call void [System.Console]System.Console::WriteLine(int32)
6666

6767
// op1: int, op2: byref
6868
ldc.i4 1
6969
ldloca V_1
70-
call int32 a::i4subbyref(int32, class ctest&)
70+
call native int a::i4subbyref(int32, class ctest&)
7171
call void [System.Console]System.Console::WriteLine(int32)
7272

7373
// op1: byref, op2: byref
7474
newobj instance void ctest::.ctor()
7575
stloc.0
7676
ldloca V_1
7777
ldsflda class ctest a::S_1
78-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
78+
call native int a::byrefsubbyref(class ctest&, class ctest&)
7979
newobj instance void ctest::.ctor()
8080
stloc.0
8181
ldloca V_1
82-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
82+
call native int a::byrefsubbyref(class ctest&, class ctest&)
8383
ldsflda class ctest a::S_1
84-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
84+
call native int a::byrefsubbyref(class ctest&, class ctest&)
8585
newobj instance void ctest::.ctor()
8686
stsfld class ctest a::S_1
8787
ldsflda class ctest a::S_1
88-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
88+
call native int a::byrefsubbyref(class ctest&, class ctest&)
8989
ldsflda class ctest a::S_1
90-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
90+
call native int a::byrefsubbyref(class ctest&, class ctest&)
9191
newobj instance void ctest::.ctor()
9292
stloc.0
9393
ldloca V_1
94-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
94+
call native int a::byrefsubbyref(class ctest&, class ctest&)
9595
ldsflda class ctest a::S_1
96-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
96+
call native int a::byrefsubbyref(class ctest&, class ctest&)
9797
newobj instance void ctest::.ctor()
9898
stloc.0
9999
ldloca V_1
100-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
100+
call native int a::byrefsubbyref(class ctest&, class ctest&)
101101
ldsflda class ctest a::S_1
102-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
102+
call native int a::byrefsubbyref(class ctest&, class ctest&)
103103
newobj instance void ctest::.ctor()
104104
stloc.0
105105
ldloca V_1
106-
call int32 a::byrefsubbyref(class ctest&, class ctest&)
106+
call native int a::byrefsubbyref(class ctest&, class ctest&)
107107
call void [System.Console]System.Console::WriteLine(int32)
108108

109109
ldc.i4 100

0 commit comments

Comments
 (0)