[PATCH] D84054: [lld][ELF] Add LOG2CEIL builtin ldscript function

Isaac Richter via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 24 12:07:27 PDT 2020


irichter added a comment.

In D84054#2171513 <https://reviews.llvm.org/D84054#2171513>, @grimar wrote:

> I do not think we should focus too much on this in LLD test. I think just a few values should be fine. E.g 0, 1, 2, 3, 4, 65535, 65536, uint64(-1)
>  @maskray, what do you think?


I see that you suggest testing the upper bounds for 16-bits (`UINT16_MAX` and `UINT16_MAX+1`, both which should return 16). Is there any particular reason for checking this at this boundary? Why not `UINT32_MAX`,`UINT32_MAX+1` (either instead of UINT16_MAX, or in addition thereto)? Should I also be testing `UINT16_MAX+2` (should return 17) and/or `UINT32_MAX+2` (should return 33)?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D84054





More information about the llvm-commits mailing list