diff options
| author | Ficture Seven <FICTURE7@gmail.com> | 2020-07-13 13:10:33 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-13 19:10:33 +1000 |
| commit | b5127131c558ac6613e4e61df3da96031a8fa155 (patch) | |
| tree | 51f5521971ad239e6558b92ef09ba8ff7f8721cf /ARMeilleure/CodeGen | |
| parent | 2cde252eea39be1e3fc61560790ba93854da09f3 (diff) | |
Fix folding of ConvertI64ToI32 imm64 (#1383)
* Fix folding of ConvertI64ToI32 imm64
* Increment PTC internal version
* Clean up
Diffstat (limited to 'ARMeilleure/CodeGen')
| -rw-r--r-- | ARMeilleure/CodeGen/Optimizations/ConstantFolding.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ARMeilleure/CodeGen/Optimizations/ConstantFolding.cs b/ARMeilleure/CodeGen/Optimizations/ConstantFolding.cs index 19cc009c..73828140 100644 --- a/ARMeilleure/CodeGen/Optimizations/ConstantFolding.cs +++ b/ARMeilleure/CodeGen/Optimizations/ConstantFolding.cs @@ -81,7 +81,7 @@ namespace ARMeilleure.CodeGen.Optimizations case Instruction.ConvertI64ToI32: if (type == OperandType.I32) { - EvaluateUnaryI64(operation, (x) => (int)x); + EvaluateUnaryI32(operation, (x) => x); } break; |
