[all-commits] [llvm/llvm-project] 611db6: [dfsan] Fix big-endian origin mask (#223247)

MarkVeerasingam via All-commits all-commits at lists.llvm.org
Mon Sep 14 03:49:31 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 611db63efe0456cca4745930977fcdfe64cc25a9
      https://github.com/llvm/llvm-project/commit/611db63efe0456cca4745930977fcdfe64cc25a9
  Author: MarkVeerasingam <122292447+MarkVeerasingam at users.noreply.github.com>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
    A llvm/test/Instrumentation/DataFlowSanitizer/origin_load_big_endian.ll

  Log Message:
  -----------
  [dfsan] Fix big-endian origin mask (#223247)

Fix the mask used when loading wide shadows on big-endian targets.

The previous expression used a 32-bit integer for the shift, producing
an incorrect zero mask for 64-bit wide shadows. Changed the expression
to use 1ULL so that a 64-bit mask is constructed correctly. The
resulting mask keeps the upper 32 bits and clears the lower 32 bits.

Previously, the big-endian path generated:

```ll
%10 = load i64, ptr %6, align 1
%11 = and i64 %10, 0
```

With this change, it generates:

```ll
%10 = load i64, ptr %6, align 1
%11 = and i64 %10, -4294967296
```
Added a SystemZ big-endian regression test.

cc: @uweigand @anoopkg6



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