Index: /trunk/src/VBox/Runtime/common/string/memcmp.asm
===================================================================
--- /trunk/src/VBox/Runtime/common/string/memcmp.asm	(revision 30254)
+++ /trunk/src/VBox/Runtime/common/string/memcmp.asm	(revision 30255)
@@ -105,6 +105,6 @@
     sub     rsi, 8
     sub     rdi, 8
+    repe cmpsb
 .not_equal_byte:
-    repe cmpsb
     mov     al, [xDI-1]
     movzx   ecx, byte [xSI-1]
Index: /trunk/src/VBox/Runtime/testcase/tstNoCrt-1.cpp
===================================================================
--- /trunk/src/VBox/Runtime/testcase/tstNoCrt-1.cpp	(revision 30254)
+++ /trunk/src/VBox/Runtime/testcase/tstNoCrt-1.cpp	(revision 30255)
@@ -458,4 +458,5 @@
     iDiff = RT_NOCRT(memcmp)(s_szTest1, s_szTest3, sizeof(s_szTest1)); CHECK_DIFF( < );
     iDiff = RT_NOCRT(memcmp)(s_szTest3, s_szTest1, sizeof(s_szTest1)); CHECK_DIFF( > );
+    iDiff = RT_NOCRT(memcmp)("1234", "1a34", 4); CHECK_DIFF( < );
 
     RTPrintf("tstNoCrt-1: strcmp\n");
