diff --git a/compiler-rt/lib/interception/tests/interception_win_test.cpp b/compiler-rt/lib/interception/tests/interception_win_test.cpp index cfa1b592f1e46..3c60d9c6f49df 100644 --- a/compiler-rt/lib/interception/tests/interception_win_test.cpp +++ b/compiler-rt/lib/interception/tests/interception_win_test.cpp @@ -801,11 +801,217 @@ const struct InstructionSizeData { size_t size; // hold instruction size or 0 for failure, // e.g. on control instructions u8 instr[16]; - size_t rel_offset; + size_t rel_offset; // filled just for instructions with two operands + // and displacement length of four bytes. const char *comment; } data[] = { - /* sorted list */ - {1, {0x50}, 0, "50 : push eax / rax"}, + // clang-format off + // sorted list + { 0, {0x70, 0x71}, 0, "70 XX : jo XX (short conditional jump)"}, + { 0, {0x71, 0x71}, 0, "71 XX : jno XX (short conditional jump)"}, + { 0, {0x72, 0x71}, 0, "72 XX : jb XX (short conditional jump)"}, + { 0, {0x73, 0x71}, 0, "73 XX : jae XX (short conditional jump)"}, + { 0, {0x74, 0x71}, 0, "74 XX : je XX (short conditional jump)"}, + { 0, {0x75, 0x71}, 0, "75 XX : jne XX (short conditional jump)"}, + { 0, {0x76, 0x71}, 0, "76 XX : jbe XX (short conditional jump)"}, + { 0, {0x77, 0x71}, 0, "77 XX : ja XX (short conditional jump)"}, + { 0, {0x78, 0x71}, 0, "78 XX : js XX (short conditional jump)"}, + { 0, {0x79, 0x71}, 0, "79 XX : jns XX (short conditional jump)"}, + { 0, {0x7A, 0x71}, 0, "7A XX : jp XX (short conditional jump)"}, + { 0, {0x7B, 0x71}, 0, "7B XX : jnp XX (short conditional jump)"}, + { 0, {0x7C, 0x71}, 0, "7C XX : jl XX (short conditional jump)"}, + { 0, {0x7D, 0x71}, 0, "7D XX : jge XX (short conditional jump)"}, + { 0, {0x7E, 0x71}, 0, "7E XX : jle XX (short conditional jump)"}, + { 0, {0x7F, 0x71}, 0, "7F XX : jg XX (short conditional jump)"}, + { 0, {0xE8, 0x71, 0x72, 0x73, 0x74}, 0, "E8 XX XX XX XX : call "}, + { 0, {0xE9, 0x71, 0x72, 0x73, 0x74}, 0, "E9 XX XX XX XX : jmp