-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue-475 : Using the unsigned operations where it s available on Pri…
…mitiveType
- Loading branch information
Showing
4 changed files
with
94 additions
and
2 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
37 changes: 37 additions & 0 deletions
37
Cesium.CodeGen.Tests/verified/CodeGenArrayTests.SignedByteArrayTest.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,37 @@ | ||
System.Int32 <Module>::main() | ||
Locals: | ||
System.SByte* V_0 | ||
System.SByte V_1 | ||
System.Int32 V_2 | ||
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: stloc.1 | ||
IL_0021: ldloc.1 | ||
IL_0022: conv.i4 | ||
IL_0023: stloc.2 | ||
IL_0024: ldloc.2 | ||
IL_0025: 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 |
37 changes: 37 additions & 0 deletions
37
Cesium.CodeGen.Tests/verified/CodeGenArrayTests.UnSignedByteArrayTest2.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,37 @@ | ||
System.Int32 <Module>::main() | ||
Locals: | ||
System.Byte* V_0 | ||
System.Byte V_1 | ||
System.Int32 V_2 | ||
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.u1 | ||
IL_0020: stloc.1 | ||
IL_0021: ldloc.1 | ||
IL_0022: conv.i4 | ||
IL_0023: stloc.2 | ||
IL_0024: ldloc.2 | ||
IL_0025: 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 |
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