[all-commits] [llvm/llvm-project] f0cbdd: [KnownBitsTest] Print name of function when exhaus...

Jay Foad via All-commits all-commits at lists.llvm.org
Mon Apr 22 04:55:10 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0cbdd3e352a1d45965be686f48eee51159bb218
      https://github.com/llvm/llvm-project/commit/f0cbdd3e352a1d45965be686f48eee51159bb218
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2024-04-22 (Mon, 22 Apr 2024)

  Changed paths:
    M llvm/unittests/Support/KnownBitsTest.cpp

  Log Message:
  -----------
  [KnownBitsTest] Print name of function when exhaustive tests fail (#89588)

When exhaustive unary/binary tests fail, print the name of the function
being tested as well as the values of the inputs and outputs.

Example of a simulated failure in testing "udiv exact":

    unittests/Support/KnownBitsTest.cpp:99: Failure
Value of: checkResult(Name, Exact, Computed, {Known1, Known2},
CheckOptimality)
Actual: false (udiv exact: Inputs = ???1, ????, Computed = ???1, Exact =
0???)
    Expected: true



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