Skip to content

Commit

Permalink
Add [Fact] attributes to methodical JIT tests (#61536)
Browse files Browse the repository at this point in the history
For now there's no functional change to the behavior of the tests,
I have just copied the bits to inject from Jeremy's example in his
pending PR.

Thanks

Tomas

Contributes to: #54512
  • Loading branch information
trylek authored Nov 14, 2021
1 parent 5da8f31 commit d722224
Show file tree
Hide file tree
Showing 395 changed files with 3,950 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/huge/huge_b.il
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@



}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'test.exe'
.namespace JitTest
Expand All @@ -35,6 +42,9 @@
.method private hidebysig static int32
Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 70
.locals (bool[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix,
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/huge/huge_i4.il
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@



}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'test.exe'
.namespace JitTest
Expand All @@ -35,6 +42,9 @@
.method private hidebysig static int32
Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 70
.locals (int32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix,
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/huge/huge_objref.il
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
.assembly 'test'
{
}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'test.exe'
.namespace JitTest
{
Expand Down Expand Up @@ -48,6 +55,9 @@
.method private hidebysig static int32
Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 70
.locals (class JitTest.TestClass[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix,
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/huge/huge_r4.il
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@



}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'test.exe'
.namespace JitTest
Expand All @@ -35,6 +42,9 @@
.method private hidebysig static int32
Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 70
.locals (float32[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix,
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/huge/huge_r8.il
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@



}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'test.exe'
.namespace JitTest
Expand All @@ -35,6 +42,9 @@
.method private hidebysig static int32
Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 70
.locals (float64[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix,
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/huge/huge_struct.il
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@



}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'test.exe'
.namespace JitTest
Expand All @@ -43,6 +50,9 @@
.method private hidebysig static int32
Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 70
.locals (value class JitTest.TestStruct[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix,
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/huge/huge_u8.il
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@



}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'test.exe'
.namespace JitTest
Expand All @@ -35,6 +42,9 @@
.method private hidebysig static int32
Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 70
.locals (unsigned int64[,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,] matrix,
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/huge_struct.il
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
// bool) = ( 01 00 00 01 00 00 )


}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'huge_strcut.exe'
// MVID: {23E3D49B-6CFD-4DA0-8C9D-A611CE0BA103}
Expand All @@ -38,6 +45,9 @@
.method private hidebysig static int32
Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
// Code size 38 (0x26)
.maxstack 70
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/lcs/lcs_ldlen.il
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@



}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'lcs.exe'
// MVID: {52ED7FCA-78F1-42F6-8DE5-7388302AFAA6}
Expand Down Expand Up @@ -603,6 +610,9 @@
.method private hidebysig static int32
Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
// Code size 227 (0xe3)
.maxstack 5
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/misc/address.il
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
.assembly 'test'
{
}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'test.exe'
.namespace JitTest
{
Expand Down Expand Up @@ -102,6 +109,9 @@
.method private hidebysig static int32
Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 4
.locals (int32[10000...10005] V_0,
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/misc/arrres.il
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
.assembly 'arrres'// as "arrres"
{
}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'arrres.exe'
.namespace GCTest
{
Expand Down Expand Up @@ -151,6 +158,9 @@
.method private hidebysig static int32
Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 4
.locals (int32 V_0,
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/misc/gcarr.il
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
.assembly 'gcarr'// as "gcarr"
{
}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'gcarr.exe'
.namespace GCTest
{
Expand All @@ -43,6 +50,9 @@
.method private hidebysig static int32
Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 3
.locals (class GCTest.Test[-10...10] V_0,
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/misc/initializearray.il
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
.hash algorithm 0x00008004
.ver 0:0:0:0
}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module initializearray.exe
.imagebase 0x00400000
.file alignment 0x00000200
Expand All @@ -22,6 +29,9 @@
{
.method private hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 8

Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/misc/initializearray_enum.il
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ class My {
.hash algorithm 0x00008004
.ver 0:0:0:0
}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module initializearray_enum.exe
// MVID: {88A311DA-3D49-42AC-8FA7-6DB1266177BC}
.imagebase 0x00400000
Expand Down Expand Up @@ -130,6 +137,9 @@ class My {
.method private hidebysig static int32
Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
// Code size 47 (0x2f)
.maxstack 8
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/misc/ldelem_get.il
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@



}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'test.exe'
.namespace JitTest
Expand Down Expand Up @@ -96,6 +103,9 @@

.method private hidebysig static int32 Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 4
.locals (float64[10000...10005] V_0,
Expand Down
10 changes: 10 additions & 0 deletions src/tests/JIT/Methodical/Arrays/misc/length0.il
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@



}
.assembly extern xunit.core
{
.publickeytoken = (
8d 05 b1 bb 7a 6f db 6c
)
.ver 2:4:2:0
}
.module 'test.exe'
.namespace JitTest
Expand Down Expand Up @@ -95,6 +102,9 @@
.method private hidebysig static int32
Main() il managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
.maxstack 4
.locals (int32[0...] V_0, int32 V_1, int32 V_2)
Expand Down
Loading

0 comments on commit d722224

Please sign in to comment.