HomePhabricator

[lldb] Fix UB in half2float and add some more tests.

Authored by teemperor on May 19 2021, 12:35 PM.

Description

[lldb] Fix UB in half2float and add some more tests.

The added DumpDataExtractorTest uncovered that this is lshifting a negative
integer which upsets ubsan and breaks the sanitizer bot. This patch just
changes the variable we shift to be unsigned and adds a bunch of tests to make
sure this function does what it promises.