Port dotnet/coreclr#5339 to Linux (dotnet/coreclr#9348)
authorFrederik Carlier <frederik.carlier@quamotion.mobi>
Sun, 5 Feb 2017 19:49:49 +0000 (20:49 +0100)
committerJan Kotas <jkotas@microsoft.com>
Sun, 5 Feb 2017 19:49:49 +0000 (11:49 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/d5fe383d22fa36b1f30ef3bd93bca192ad096225

src/coreclr/src/vm/arm64/crthelpers.S

index ff0df5b..f7b5f76 100644 (file)
@@ -18,7 +18,7 @@
 //
 //void JIT_MemSet(void *dst, int val, SIZE_T count)
 //
-//    uintptr_t valEx = (char)val;
+//    uintptr_t valEx = (unsigned char)val;
 //    valEx = valEx | valEx << 8;
 //    valEx = valEx | valEx << 16;
 //    valEx = valEx | valEx << 32;
@@ -85,7 +85,7 @@
 // as C++ method.
 
 LEAF_ENTRY JIT_MemSet, _TEXT
-    sxtb        w8,w1
+    uxtb        w8,w1
     sxtw        x8,w8
     orr         x8,x8,x8, lsl #8
     orr         x8,x8,x8, lsl #0x10