[all-commits] [llvm/llvm-project] 692748: Change check for "shift > Type::BITS" to avoid off...

Amy Huang via All-commits all-commits at lists.llvm.org
Tue Mar 25 20:41:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 69274839c3e78c66173b611ec060d58609653e0f
      https://github.com/llvm/llvm-project/commit/69274839c3e78c66173b611ec060d58609653e0f
  Author: Amy Huang <akhuang at google.com>
  Date:   2025-03-25 (Tue, 25 Mar 2025)

  Changed paths:
    M libc/src/__support/FPUtil/dyadic_float.h

  Log Message:
  -----------
  Change check for "shift > Type::BITS" to avoid offset greater than total bits. (#133016)

nexttowardf16_test is resulting in calling shift and for some reason not
meeting the invariant where offset is less than bits. Change the if
statement to directly check if shift - 1 meets the conditions.



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