fixing wrong MOV asm instruction emitter for arm64 (#1216)
authorYaroslav Yamshchikov <y.yamshchiko@samsung.com>
Tue, 31 Dec 2019 00:27:25 +0000 (03:27 +0300)
committerJan Kotas <jkotas@microsoft.com>
Tue, 31 Dec 2019 00:27:25 +0000 (16:27 -0800)
src/coreclr/src/tools/Common/Compiler/DependencyAnalysis/Target_ARM64/ARM64Emitter.cs

index f2add85..e266aea 100644 (file)
@@ -32,7 +32,7 @@ namespace ILCompiler.DependencyAnalysis.ARM64
         public void EmitMOV(Register regDst, ushort imm16)
         {
             Debug.Assert((uint)regDst <= 0x1f);
-            uint instruction = 0xd2800009u | ((uint)imm16 << 5) | (uint)regDst;
+            uint instruction = 0xd2800000u | ((uint)imm16 << 5) | (uint)regDst;
             Builder.EmitUInt(instruction);
         }