[PATCH] D151795: [DebugInfo] Add DW_ATE_complex_float case to assert in isUnsignedDIType

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 9 12:55:41 PDT 2023


MaskRay added inline comments.


================
Comment at: llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp:226
           Encoding == dwarf::DW_ATE_boolean ||
+          Encoding == dwarf::DW_ATE_complex_float ||
           (Ty->getTag() == dwarf::DW_TAG_unspecified_type &&
----------------
probinson wrote:
> Orlando wrote:
> > MaskRay wrote:
> > > Whether are the other `Encoding == xxx` tested? Is it possible to group the `DW_ATE_complex_float` test with those test files?
> > Omitting some types from the assertion and running the tests, among other failures I found `float_const.ll`, `dbg-i128-const.ll`  and `dbg-const-int.ll` in `llvm/test/DebugInfo/X86` (same directory as the new test) which look to be testing this behaviour. Not conclusive but it looks like there's a precedent for using this directory.
> I suspect we could improve testing efficiency by combining some of these into a single test file, but as they are already split across files I don't think it's appropriate to insist that you do anything different here.
I agree. It'd be worth thinking about grouping tests if @Orlando or others have extra energy on the work:)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D151795/new/

https://reviews.llvm.org/D151795



More information about the llvm-commits mailing list