[llvm] [KnownFPClass] Refine known classes for `KnownFPClass::bitcast` (PR #215708)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 18 19:51:41 PDT 2026


================
@@ -0,0 +1,198 @@
+//===- KnownFPClassTest.cpp - KnownFPClass tests --------------------------===//
----------------
ZERICO2005 wrote:

I converted the cases that can be expressed through LLVM IR to `lit` tests.

The remaining unit tests (`BitcastExhaustiveIEEEHalf`, `BitcastConstant`, and `BitcastConflict`) directly exercise `KnownFPClass::bitcast`. They do not use `ValueTracking` or LLVM IR parsing, so I do not think they belong in `unittests/Analysis/ValueTrackingTest.cpp`.

Since `KnownFPClass` is implemented in `Support`, I placed these tests in `unittests/Support/KnownFPClassTest.cpp`. Would you prefer a different location?


https://github.com/llvm/llvm-project/pull/215708


More information about the llvm-commits mailing list