llvm-capstone/llvm/unittests
serge-sans-paille 1454c27b60 Syndicate, test and fix base64 implementation
llvm/Support/Base64, fix its implementation and provide a decent test suite.

Previous implementation code was using + operator instead of | to combine

results, which is a problem when shifting signed values. (0xFF << 16) is
implicitly converted to a (signed) int, and thus results in 0xffff0000,
h is
negative. Combining negative numbers with a + in that context is not what we
want to do.

This is a recommit of 5a1958f267 with UB removved.

This fixes https://github.com/llvm/llvm-project/issues/149.

Differential Revision: https://reviews.llvm.org/D75057
2020-03-03 12:17:53 +01:00
..
ADT [ADT] Allow K to be incomplete during DenseMap<K*, V> instantiation 2020-02-28 14:24:04 -08:00
Analysis [PSI] Add the isCold query support with a given percentile value. 2020-03-02 12:50:15 -08:00
AsmParser
BinaryFormat [MachO] Add cpu(sub)type tests and improve error handling 2020-02-24 10:44:42 -08:00
Bitcode
Bitstream
CodeGen [DebugInfo] Re-implement LexicalScopes dominance method, add unit tests 2020-02-28 11:41:28 +00:00
DebugInfo [DWARF] Use DWARFDataExtractor::getInitialLength to parse debug_names 2020-03-02 11:21:23 +01:00
Demangle
ExecutionEngine [ORC] Remove the JITDylib::SymbolTableEntry::isInMaterializingState() method. 2020-02-25 16:44:12 -08:00
Frontend [OpenMP][OMPIRBuilder] Add Directives (master and critical) to OMPBuilder. 2020-02-15 01:15:45 -06:00
FuzzMutate
IR Reland "[DebugInfo][clang][DWARF5]: Added support for debuginfo generation for defaulted parameters 2020-03-02 16:45:48 +05:30
LineEditor
Linker
MC
MI
Object
ObjectYAML
Option
Passes
ProfileData Avoid including FileSystem.h from MemoryBuffer.h 2020-02-29 12:30:23 -08:00
Remarks
Support Syndicate, test and fix base64 implementation 2020-03-03 12:17:53 +01:00
TableGen Make unittests include path relative 2020-02-21 10:19:11 +01:00
Target
TextAPI [llvm][TextAPI] rename test vars, NFC 2020-02-25 14:28:36 -08:00
tools Recommit: "[llvm-exegesis] Improve error reporting in Assembler.cpp" 2020-02-19 14:40:28 +01:00
Transforms [LoopVectorizer] Change types of lists from pointers to references. NFC 2020-03-02 15:04:41 +00:00
XRay
CMakeLists.txt
unittest.cfg.in