llvm/unittests
Frederic Riss f87dc438fd [MCDwarf] Fix encoding of line tables with weird custom parameters
With poorly chosen custom parameters, the line table encoding logic would
sometimes end up generating a special opcode bigger than 255, which is wrong.
The set of default parameters that LLVM uses isn't subject to this bug.

When carefully chosing the line table parameters, it's impossible to fall into the
corner case that this patch fixes. The standard however doesn't require that these
parameters be carefully chosen. And even if it did, we shouldn't generate broken
encoding.

Add a unittest for this specific encoding bug, and while at it, create some unit
tests for the encoding logic using different sets of parameters.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259334 91177308-0d34-0410-b5e6-96231b3b80d8
2016-01-31 22:06:35 +00:00
..
ADT SmallPtrSetTest: More checks for the swap() testing 2016-01-29 03:34:36 +00:00
Analysis Remove autoconf support 2016-01-26 21:29:08 +00:00
AsmParser Remove autoconf support 2016-01-26 21:29:08 +00:00
Bitcode Remove autoconf support 2016-01-26 21:29:08 +00:00
CodeGen Remove autoconf support 2016-01-26 21:29:08 +00:00
DebugInfo Remove autoconf support 2016-01-26 21:29:08 +00:00
ExecutionEngine Remove autoconf support 2016-01-26 21:29:08 +00:00
IR Handle more edge cases in intrinsic name binary search 2016-01-26 22:33:19 +00:00
LineEditor Remove autoconf support 2016-01-26 21:29:08 +00:00
Linker Remove autoconf support 2016-01-26 21:29:08 +00:00
MC [MCDwarf] Fix encoding of line tables with weird custom parameters 2016-01-31 22:06:35 +00:00
Option Remove autoconf support 2016-01-26 21:29:08 +00:00
ProfileData Further reduce test time 2016-01-30 01:37:32 +00:00
Support Fixed compilation issue. 2016-01-28 20:36:46 +00:00
Transforms Remove autoconf support 2016-01-26 21:29:08 +00:00
CMakeLists.txt AsmParser: Require a terminating null character when creating memory buffer. 2015-05-20 20:41:27 +00:00