[all-commits] [llvm/llvm-project] 329734: [win/asan] GetInstructionSize: Support `48 bX` mov...

bernhardu via All-commits all-commits at lists.llvm.org
Mon Jun 2 00:00:04 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 32973408bcb28acac897f4e43cb8f64a4b64529e
      https://github.com/llvm/llvm-project/commit/32973408bcb28acac897f4e43cb8f64a4b64529e
  Author: bernhardu <bernhardu at mailbox.org>
  Date:   2025-06-02 (Mon, 02 Jun 2025)

  Changed paths:
    M compiler-rt/lib/interception/interception_win.cpp
    M compiler-rt/lib/interception/tests/interception_win_test.cpp

  Log Message:
  -----------
  [win/asan] GetInstructionSize: Support `48 bX` movabsq instructions. (#141625)

Created for Wine's memset by clang or mingw-gcc,
the latter places it quite at the start of the function:

```
   0x00006ffffb67e210 <memset+0>:       0f b6 d2                movzbl %dl,%edx
   0x00006ffffb67e213 <memset+3>:       48 b8 01 01 01 01 01 01 01 01   movabs $0x101010101010101,%rax
```

`3200      uint64_t v = 0x101010101010101ull * (unsigned char)c;`


https://gitlab.winehq.org/wine/wine/-/blob/290fd532ee7376442d272e3833528256bfe5e9dc/dlls/msvcrt/string.c#L3200



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list