[compiler-rt] [win/asan] GetInstructionSize: Add some more instructions. (PR #219038)

Sebastian Pipping via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 03:59:18 PDT 2026


================
@@ -869,8 +870,14 @@ const struct InstructionSizeData {
     { 3, {0x8D, 0x45, 0x72}, 0, "8D 45 XX : lea eax, [ebp + XX]"},
     { 3, {0xc2, 0x71, 0x72}, 0, "C2 XX XX : ret XX (needed for registering weak functions)"},
     { 4, {0x66, 0x0f, 0xef, 0xc0}, 0, "66 0f ef c0 : pxor xmm0, xmm0"},
+    { 4, {0x66, 0x83, 0x3A, 0x73}, 0, "66 83 3A XX : cmp word ptr [rdx], XX"},
+    { 4, {0x8D, 0x44, 0x24, 0x73}, 0, "8D 44 24 XX : lea eax, [esp + XX]"},
     { 4, {0x8D, 0x4C, 0x24, 0x73}, 0, "8D 4C 24 XX : lea ecx, [esp + XX]"},
+    { 4, {0xF3, 0x0F, 0x1E, 0xFA}, 0, "F3 0F 1E FA : endbr64"},
+    { 4, {0xF3, 0x0F, 0x1E, 0xFB}, 0, "F3 0F 1E FB : endbr32"},
     { 4, {0xFF, 0x74, 0x24, 0x73}, 0, "FF 74 24 XX : push qword ptr [rsp + XX]"},
+    { 5, {0x0F, 0xB6, 0x44, 0x24, 0x74}, 0, "0F B6 44 24 XX : movzx eax, byte ptr [esp + XX]"},
+    { 5, {0x0F, 0xB6, 0x4C, 0x24, 0x74}, 0, "0F B6 4C 24 XX : movzx ecx, byte ptr [esp + XX]"},
----------------
hartwork wrote:

@bernhardu the fifth element — 0x74 — does not seem right here, it would need to be 0x08 to match your comment https://github.com/llvm/llvm-project/issues/96270#issuecomment-5418505326 and my findings in the same issue or be cut down to a four-byte sequence. I may be missing something. What do you think?

https://github.com/llvm/llvm-project/pull/219038


More information about the llvm-commits mailing list