aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectCommands.cpp
diff options
context:
space:
mode:
authorIsaac Richter <isaac@irichter.net>2020-07-27 11:49:24 +0300
committerGeorgii Rymar <grimar@accesssoftek.com>2020-07-27 12:16:43 +0300
commitfa1145a8d2f1bd00a60d0ed4572901d2b1403157 (patch)
treed31af1763b8d692dba1630467f6b4ca83c55928d /lldb/source/Commands/CommandObjectCommands.cpp
parent19e472fd84ec75f5323a147bedfffabbb23d0978 (diff)
downloadllvm-fa1145a8d2f1bd00a60d0ed4572901d2b1403157.zip
llvm-fa1145a8d2f1bd00a60d0ed4572901d2b1403157.tar.gz
llvm-fa1145a8d2f1bd00a60d0ed4572901d2b1403157.tar.bz2
[lld][ELF] Add LOG2CEIL builtin ldscript function
This patch adds support for the LOG2CEIL builtin function in linker scripts: https://sourceware.org/binutils/docs/ld/Builtin-Functions.html#index-LOG2CEIL_0028exp_0029 As documented for LD, and to keep compatibility, LOG2CEIL(0) returns 0 (not -inf). The test vectors are somewhat arbitrary. We check minimum values (0-4); middle values (2^32, and 2^32+1); and the maximum value (2^64-1). The checks for LOG2CEIL explicitly use full 64-bit values (16 hex digits). This is needed to properly verify that -inf and other interesting results aren't returned. (For some reason, all other tests in operators.test use only 14 digits.) Differential revision: https://reviews.llvm.org/D84054
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
0 files changed, 0 insertions, 0 deletions