[all-commits] [llvm/llvm-project] fc8d48: [clang] Fix __builtin_popcountg not matching GCC (...

OverMighty via All-commits all-commits at lists.llvm.org
Wed Feb 28 14:46:19 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc8d48106387b8b79531902788ef93571f924da7
      https://github.com/llvm/llvm-project/commit/fc8d48106387b8b79531902788ef93571f924da7
  Author: OverMighty <its.overmighty at gmail.com>
  Date:   2024-02-28 (Wed, 28 Feb 2024)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/include/clang/Basic/Builtins.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/CodeGen/builtins.c
    M clang/test/Sema/builtin-popcountg.c

  Log Message:
  -----------
  [clang] Fix __builtin_popcountg not matching GCC (#83313)

Our implementation previously accepted signed arguments and performed
integer promotion on the argument. GCC's implementation requires an
unsigned argument and does not perform integer promotion on it.



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