summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-11-06 12:39:09 -0800
committerCraig Topper <craig.topper@intel.com>2019-11-06 13:03:18 -0800
commit641d2e5232b423a7dd81afac94dd3db4412a4971 (patch)
tree774d8910b41ce6079f99210dda0418d314f0e337 /lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py
parent35cf9a1fc5d2ab7c171c968737092874676ce8ea (diff)
downloadbcm5719-llvm-641d2e5232b423a7dd81afac94dd3db4412a4971.tar.gz
bcm5719-llvm-641d2e5232b423a7dd81afac94dd3db4412a4971.zip
[X86] Clamp large constant shift amounts for MMX shift intrinsics to 8-bits.
The MMX intrinsics for shift by immediate take a 32-bit shift amount but the hardware for shifting by immediate only encodes 8-bits. For the intrinsic we don't require the shift amount to fit in 8-bits in the frontend because we don't check that its an immediate in the frontend. If its is not an immediate we move it to an MMX register and use the shift by register. But if it is an immediate we'll use the shift by immediate instruction. But we need to change the shift amount to 8-bits. We were previously doing this accidentally by masking it in the encoder. But this can make a large shift amount into a small in bounds shift amount. Instead we should clamp larger shift amounts to 255 so that the they don't become in bounds. Fixes PR43922
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/signals/TestSignalsAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud