-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#751) Tests: update test output, log all types in CodeGenArrayTests
- Loading branch information
Showing
38 changed files
with
1,363 additions
and
1,058 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
55 changes: 29 additions & 26 deletions
55
Cesium.CodeGen.Tests/verified/CodeGenArrayTests.ArrayAddressOf.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 |
---|---|---|
@@ -1,27 +1,30 @@ | ||
System.Int32 <Module>::main() | ||
Locals: | ||
System.Int32* V_0 | ||
System.Int32* V_1 | ||
IL_0000: ldc.i4.s 40 | ||
IL_0002: conv.u | ||
IL_0003: localloc | ||
IL_0005: stloc.0 | ||
IL_0006: ldloc.0 | ||
IL_0007: ldc.i4.2 | ||
IL_0008: conv.i | ||
IL_0009: ldc.i4 4 | ||
IL_000e: mul | ||
IL_000f: add | ||
IL_0010: stloc.1 | ||
IL_0011: ldc.i4.0 | ||
IL_0012: ret | ||
Module: Primary | ||
Type: <Module> | ||
Methods: | ||
System.Int32 <Module>::main() | ||
Locals: | ||
System.Int32* V_0 | ||
System.Int32* V_1 | ||
IL_0000: ldc.i4.s 40 | ||
IL_0002: conv.u | ||
IL_0003: localloc | ||
IL_0005: stloc.0 | ||
IL_0006: ldloc.0 | ||
IL_0007: ldc.i4.2 | ||
IL_0008: conv.i | ||
IL_0009: ldc.i4 4 | ||
IL_000e: mul | ||
IL_000f: add | ||
IL_0010: stloc.1 | ||
IL_0011: ldc.i4.0 | ||
IL_0012: 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 | ||
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 |
74 changes: 43 additions & 31 deletions
74
Cesium.CodeGen.Tests/verified/CodeGenArrayTests.ArrayArithmetic.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 |
---|---|---|
@@ -1,32 +1,44 @@ | ||
System.Int32 <Module>::main() | ||
Locals: | ||
System.Int32* V_0 | ||
System.Int32* V_1 | ||
IL_0000: ldc.i4.8 | ||
IL_0001: conv.u | ||
IL_0002: localloc | ||
IL_0004: stloc.0 | ||
IL_0005: ldsflda <ConstantPool>/<ConstantPoolItemType8> <ConstantPool>::ConstDataBuffer0 | ||
IL_000a: ldloc V_0 | ||
IL_000e: ldc.i4.8 | ||
IL_000f: conv.u | ||
IL_0010: call System.Void Cesium.Runtime.RuntimeHelpers::InitializeCompound(System.Void*,System.Void*,System.UInt32) | ||
IL_0015: ldloc.0 | ||
IL_0016: ldc.i4.4 | ||
IL_0017: ldc.i4.1 | ||
IL_0018: mul | ||
IL_0019: add | ||
IL_001a: stloc.1 | ||
IL_001b: ldloc.1 | ||
IL_001c: ldind.i4 | ||
IL_001d: ret | ||
Module: Primary | ||
Type: <Module> | ||
Methods: | ||
System.Int32 <Module>::main() | ||
Locals: | ||
System.Int32* V_0 | ||
System.Int32* V_1 | ||
IL_0000: ldc.i4.8 | ||
IL_0001: conv.u | ||
IL_0002: localloc | ||
IL_0004: stloc.0 | ||
IL_0005: ldsflda <ConstantPool>/<ConstantPoolItemType8> <ConstantPool>::ConstDataBuffer0 | ||
IL_000a: ldloc V_0 | ||
IL_000e: ldc.i4.8 | ||
IL_000f: conv.u | ||
IL_0010: call System.Void Cesium.Runtime.RuntimeHelpers::InitializeCompound(System.Void*,System.Void*,System.UInt32) | ||
IL_0015: ldloc.0 | ||
IL_0016: ldc.i4.4 | ||
IL_0017: ldc.i4.1 | ||
IL_0018: mul | ||
IL_0019: add | ||
IL_001a: stloc.1 | ||
IL_001b: ldloc.1 | ||
IL_001c: ldind.i4 | ||
IL_001d: 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 | ||
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 | ||
|
||
Type: <ConstantPool> | ||
Nested types: | ||
Type: <ConstantPool>/<ConstantPoolItemType8> | ||
Pack: 1 | ||
Size: 8 | ||
Fields: | ||
<ConstantPool>/<ConstantPoolItemType8> <ConstantPool>::ConstDataBuffer0 | ||
Init with (UTF-8 x 8 bytes): "\0\0\0\0\0\0\0" |
67 changes: 35 additions & 32 deletions
67
Cesium.CodeGen.Tests/verified/CodeGenArrayTests.ArrayAssignment.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 |
---|---|---|
@@ -1,33 +1,36 @@ | ||
System.Int32 <Module>::main() | ||
Locals: | ||
System.Int32* V_0 | ||
IL_0000: ldc.i4.s 40 | ||
IL_0002: conv.u | ||
IL_0003: localloc | ||
IL_0005: stloc.0 | ||
IL_0006: ldloc.0 | ||
IL_0007: ldc.i4.1 | ||
IL_0008: conv.i | ||
IL_0009: ldc.i4 4 | ||
IL_000e: mul | ||
IL_000f: add | ||
IL_0010: ldc.i4.2 | ||
IL_0011: stind.i4 | ||
IL_0012: ldloc.0 | ||
IL_0013: ldc.i4.1 | ||
IL_0014: conv.i | ||
IL_0015: ldc.i4 4 | ||
IL_001a: mul | ||
IL_001b: add | ||
IL_001c: ldind.i4 | ||
IL_001d: ret | ||
Module: Primary | ||
Type: <Module> | ||
Methods: | ||
System.Int32 <Module>::main() | ||
Locals: | ||
System.Int32* V_0 | ||
IL_0000: ldc.i4.s 40 | ||
IL_0002: conv.u | ||
IL_0003: localloc | ||
IL_0005: stloc.0 | ||
IL_0006: ldloc.0 | ||
IL_0007: ldc.i4.1 | ||
IL_0008: conv.i | ||
IL_0009: ldc.i4 4 | ||
IL_000e: mul | ||
IL_000f: add | ||
IL_0010: ldc.i4.2 | ||
IL_0011: stind.i4 | ||
IL_0012: ldloc.0 | ||
IL_0013: ldc.i4.1 | ||
IL_0014: conv.i | ||
IL_0015: ldc.i4 4 | ||
IL_001a: mul | ||
IL_001b: add | ||
IL_001c: ldind.i4 | ||
IL_001d: 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 | ||
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 |
90 changes: 51 additions & 39 deletions
90
Cesium.CodeGen.Tests/verified/CodeGenArrayTests.ArrayCharComparison.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 |
---|---|---|
@@ -1,40 +1,52 @@ | ||
System.Int32 <Module>::main() | ||
Locals: | ||
System.Byte* V_0 | ||
IL_0000: ldc.i4.1 | ||
IL_0001: conv.u | ||
IL_0002: localloc | ||
IL_0004: stloc.0 | ||
IL_0005: ldsflda <ConstantPool>/<ConstantPoolItemType1> <ConstantPool>::ConstDataBuffer0 | ||
IL_000a: ldloc V_0 | ||
IL_000e: ldc.i4.1 | ||
IL_000f: conv.u | ||
IL_0010: call System.Void Cesium.Runtime.RuntimeHelpers::InitializeCompound(System.Void*,System.Void*,System.UInt32) | ||
IL_0015: ldloc.0 | ||
IL_0016: ldc.i4.0 | ||
IL_0017: conv.i | ||
IL_0018: ldc.i4 1 | ||
IL_001d: mul | ||
IL_001e: add | ||
IL_001f: ldind.i1 | ||
IL_0020: ldc.i4.s 68 | ||
IL_0022: conv.u1 | ||
IL_0023: ceq | ||
IL_0025: ldc.i4.0 | ||
IL_0026: ceq | ||
IL_0028: brfalse IL_002f | ||
IL_002d: ldc.i4.0 | ||
IL_002e: ret | ||
IL_002f: nop | ||
IL_0030: ldc.i4.1 | ||
IL_0031: ret | ||
Module: Primary | ||
Type: <Module> | ||
Methods: | ||
System.Int32 <Module>::main() | ||
Locals: | ||
System.Byte* V_0 | ||
IL_0000: ldc.i4.1 | ||
IL_0001: conv.u | ||
IL_0002: localloc | ||
IL_0004: stloc.0 | ||
IL_0005: ldsflda <ConstantPool>/<ConstantPoolItemType1> <ConstantPool>::ConstDataBuffer0 | ||
IL_000a: ldloc V_0 | ||
IL_000e: ldc.i4.1 | ||
IL_000f: conv.u | ||
IL_0010: call System.Void Cesium.Runtime.RuntimeHelpers::InitializeCompound(System.Void*,System.Void*,System.UInt32) | ||
IL_0015: ldloc.0 | ||
IL_0016: ldc.i4.0 | ||
IL_0017: conv.i | ||
IL_0018: ldc.i4 1 | ||
IL_001d: mul | ||
IL_001e: add | ||
IL_001f: ldind.i1 | ||
IL_0020: ldc.i4.s 68 | ||
IL_0022: conv.u1 | ||
IL_0023: ceq | ||
IL_0025: ldc.i4.0 | ||
IL_0026: ceq | ||
IL_0028: brfalse IL_002f | ||
IL_002d: ldc.i4.0 | ||
IL_002e: ret | ||
IL_002f: nop | ||
IL_0030: ldc.i4.1 | ||
IL_0031: 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 | ||
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 | ||
|
||
Type: <ConstantPool> | ||
Nested types: | ||
Type: <ConstantPool>/<ConstantPoolItemType1> | ||
Pack: 1 | ||
Size: 1 | ||
Fields: | ||
<ConstantPool>/<ConstantPoolItemType1> <ConstantPool>::ConstDataBuffer0 | ||
Init with (UTF-8 x 1 bytes): "A" |
Oops, something went wrong.