[all-commits] [llvm/llvm-project] 5fba8c: [clang][test] Add more tests for __builtin_clear_p...

Michael Buch via All-commits all-commits at lists.llvm.org
Fri Jun 26 16:14:24 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5fba8c6dd4cca098ce97028aa000ebb08d4f32ad
      https://github.com/llvm/llvm-project/commit/5fba8c6dd4cca098ce97028aa000ebb08d4f32ad
  Author: Michael Buch <michaelbuch12 at gmail.com>
  Date:   2026-06-27 (Sat, 27 Jun 2026)

  Changed paths:
    M clang/test/CodeGen/builtin-clear-padding-codegen.c
    M clang/test/CodeGenCXX/builtin-clear-padding-codegen.cpp

  Log Message:
  -----------
  [clang][test] Add more tests for __builtin_clear_padding (#205813)

Follow-up to https://github.com/llvm/llvm-project/pull/201102 which
fixed Clang's `__builtin_clear_padding` treatment of unnamed bitfields.

This patch adds some more test coverage (more layouts, and verifies IR).

Used Claude to generate the layouts. Manually ran
`llvm/utils/update_cc_test_checks.py` to generate the `CHECK` directives
and confirmed that the bit-masks in the IR match the expected
`__builtin_clear_padding` behaviour.

Assisted-by: claude



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