Skip to content

Commit e58420d

Browse files
author
git apple-llvm automerger
committed
Merge commit '610ade2ed725' from llvm.org/main into next
2 parents daee0a9 + 610ade2 commit e58420d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler-rt/lib/interception/interception_win.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ static size_t GetInstructionSize(uptr address, size_t* rel_offset = nullptr) {
646646
case 0xC033: // 33 C0 : xor eax, eax
647647
case 0xC933: // 33 C9 : xor ecx, ecx
648648
case 0xD233: // 33 D2 : xor edx, edx
649+
case 0x9066: // 66 90 : xchg %ax,%ax (Two-byte NOP)
649650
case 0xDB84: // 84 DB : test bl,bl
650651
case 0xC084: // 84 C0 : test al,al
651652
case 0xC984: // 84 C9 : test cl,cl
@@ -726,7 +727,6 @@ static size_t GetInstructionSize(uptr address, size_t* rel_offset = nullptr) {
726727
case 0x5541: // push r13
727728
case 0x5641: // push r14
728729
case 0x5741: // push r15
729-
case 0x9066: // Two-byte NOP
730730
case 0xc084: // test al, al
731731
case 0x018a: // mov al, byte ptr [rcx]
732732
return 2;

compiler-rt/lib/interception/tests/interception_win_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ const struct InstructionSizeData {
845845
{ 2, {0x33, 0xC0}, 0, "33 C0 : xor eax, eax"},
846846
{ 2, {0x33, 0xC9}, 0, "33 C9 : xor ecx, ecx"},
847847
{ 2, {0x33, 0xD2}, 0, "33 D2 : xor edx, edx"},
848+
{ 2, {0x66, 0x90}, 0, "66 90 : xchg %ax,%ax (Two-byte NOP)"},
848849
{ 2, {0x6A, 0x71}, 0, "6A XX : push XX"},
849850
{ 2, {0x84, 0xC0}, 0, "84 C0 : test al,al"},
850851
{ 2, {0x84, 0xC9}, 0, "84 C9 : test cl,cl"},
@@ -887,7 +888,6 @@ const struct InstructionSizeData {
887888
{ 2, {0x41, 0x55}, 0, "41 55 : push r13"},
888889
{ 2, {0x41, 0x56}, 0, "41 56 : push r14"},
889890
{ 2, {0x41, 0x57}, 0, "41 57 : push r15"},
890-
{ 2, {0x66, 0x90}, 0, "66 90 : Two-byte NOP"},
891891
{ 2, {0x84, 0xc0}, 0, "84 c0 : test al, al"},
892892
{ 2, {0x8a, 0x01}, 0, "8a 01 : mov al, byte ptr [rcx]"},
893893
{ 3, {0x0f, 0xb6, 0x01}, 0, "0f b6 01 : movzx eax, BYTE PTR [rcx]"},

0 commit comments

Comments
 (0)