forked from ForNeVeR/Cesium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(ForNeVeR#354) CodeGen: implement the wide architecture set
- Loading branch information
Showing
11 changed files
with
135 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
...s/verified/ArchitectureDependentCodeTests.PointerArrayMemberAssign_arch=Wide.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
System.Int32 <Module>::main() | ||
Locals: | ||
System.Void* V_0 | ||
IL_0000: ldc.i4.s 24 | ||
IL_0002: conv.u | ||
IL_0003: localloc | ||
IL_0005: stloc.0 | ||
IL_0006: ldloc.0 | ||
IL_0007: conv.u | ||
IL_0008: ldc.i4.8 | ||
IL_0009: ldc.i4.2 | ||
IL_000a: mul | ||
IL_000b: conv.i | ||
IL_000c: add | ||
IL_000d: ldc.i4.0 | ||
IL_000e: stind.i | ||
IL_000f: ldloc.0 | ||
IL_0010: conv.u | ||
IL_0011: ldc.i4.8 | ||
IL_0012: ldc.i4.0 | ||
IL_0013: mul | ||
IL_0014: conv.i | ||
IL_0015: add | ||
IL_0016: ldloc.0 | ||
IL_0017: conv.u | ||
IL_0018: ldc.i4.8 | ||
IL_0019: ldc.i4.2 | ||
IL_001a: mul | ||
IL_001b: conv.i | ||
IL_001c: add | ||
IL_001d: ldind.i | ||
IL_001e: stind.i | ||
IL_001f: ldc.i4.0 | ||
IL_0020: ret | ||
|
||
System.Int32 <Module>::<SyntheticEntrypoint>() | ||
Locals: | ||
System.Int32 V_0 | ||
IL_0000: call System.Int32 <Module>::main() | ||
IL_0005: stloc.s V_0 | ||
IL_0007: ldloc.s V_0 | ||
IL_0009: call System.Void Cesium.Runtime.RuntimeHelpers::Exit(System.Int32) | ||
IL_000e: ldloc.s V_0 | ||
IL_0010: ret |
35 changes: 35 additions & 0 deletions
35
....CodeGen.Tests/verified/ArchitectureDependentCodeTests.StaticArray_arch=Wide.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
System.Int32 <Module>::main() | ||
Locals: | ||
System.Int32* V_0 | ||
IL_0000: ldc.i4 2400 | ||
IL_0005: conv.u | ||
IL_0006: localloc | ||
IL_0008: stloc.0 | ||
IL_0009: ldloc.0 | ||
IL_000a: conv.u | ||
IL_000b: ldc.i4.8 | ||
IL_000c: ldc.i4 299 | ||
IL_0011: mul | ||
IL_0012: conv.i | ||
IL_0013: add | ||
IL_0014: ldc.i4.0 | ||
IL_0015: stind.i | ||
IL_0016: ldloc.0 | ||
IL_0017: conv.u | ||
IL_0018: ldc.i4.8 | ||
IL_0019: ldc.i4 299 | ||
IL_001e: mul | ||
IL_001f: conv.i | ||
IL_0020: add | ||
IL_0021: ldind.i | ||
IL_0022: ret | ||
|
||
System.Int32 <Module>::<SyntheticEntrypoint>() | ||
Locals: | ||
System.Int32 V_0 | ||
IL_0000: call System.Int32 <Module>::main() | ||
IL_0005: stloc.s V_0 | ||
IL_0007: ldloc.s V_0 | ||
IL_0009: call System.Void Cesium.Runtime.RuntimeHelpers::Exit(System.Int32) | ||
IL_000e: ldloc.s V_0 | ||
IL_0010: ret |
19 changes: 19 additions & 0 deletions
19
....CodeGen.Tests/verified/ArchitectureDependentCodeTests.StructArray_arch=Wide.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
System.Int32 <Module>::main() | ||
Locals: | ||
foo* V_0 | ||
IL_0000: ldc.i4.s 24 | ||
IL_0002: conv.u | ||
IL_0003: localloc | ||
IL_0005: stloc.0 | ||
IL_0006: ldc.i4.0 | ||
IL_0007: ret | ||
|
||
System.Int32 <Module>::<SyntheticEntrypoint>() | ||
Locals: | ||
System.Int32 V_0 | ||
IL_0000: call System.Int32 <Module>::main() | ||
IL_0005: stloc.s V_0 | ||
IL_0007: ldloc.s V_0 | ||
IL_0009: call System.Void Cesium.Runtime.RuntimeHelpers::Exit(System.Int32) | ||
IL_000e: ldloc.s V_0 | ||
IL_0010: ret |
19 changes: 19 additions & 0 deletions
19
...en.Tests/verified/ArchitectureDependentTypeTests.StructWithPointer_arch=Wide.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Module: Primary | ||
Type: <Module> | ||
|
||
Type: foo | ||
Nested types: | ||
Type: foo/<SyntheticBuffer>x | ||
Pack: 0 | ||
Size: 8 | ||
Custom attributes: | ||
- CompilerGeneratedAttribute() | ||
- UnsafeValueTypeAttribute() | ||
|
||
Fields: | ||
System.Byte* foo/<SyntheticBuffer>x::FixedElementField | ||
Fields: | ||
foo/<SyntheticBuffer>x foo::x | ||
Custom attributes: | ||
- FixedBufferAttribute(System.Byte*, 8) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters