summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/commands/expression/context-object-objc
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-10-10 21:46:52 +0000
committerCraig Topper <craig.topper@intel.com>2019-10-10 21:46:52 +0000
commit4ee7f8365f90cb21aa0afed0754cb13493e09e7d (patch)
treea1e9ee46931f9f1a3563af47f5b67c492881f3a9 /lldb/packages/Python/lldbsuite/test/commands/expression/context-object-objc
parenta0df8b72f222ec66b268eec619694eed46b8d016 (diff)
downloadbcm5719-llvm-4ee7f8365f90cb21aa0afed0754cb13493e09e7d.tar.gz
bcm5719-llvm-4ee7f8365f90cb21aa0afed0754cb13493e09e7d.zip
[X86] Guard against leaving a dangling node in combineTruncateWithSat.
When handling the packus pattern for i32->i8 we do a two step process using a packss to i16 followed by a packus to i8. If the final i8 step is a type with less than 64-bits the packus step will return SDValue(), but the i32->i16 step might have succeeded. This leaves the nodes from the middle step dangling. Guard against this by pre-checking that the number of elements is at least 8 before doing the middle step. With that check in place this should mean the only other case the middle step itself can fail is when SSE2 is disabled. So add an early SSE2 check then just assert that neither the middle or final step ever fail. llvm-svn: 374460
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/expression/context-object-objc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud