HomePhabricator

[X86] Add checking of the scale argument to scatter/gather builtins

Description

[X86] Add checking of the scale argument to scatter/gather builtins

The only valid values for scale immediate of scatter/gather builtins are 1, 2, 4, or 8. This patch enforces this in the frontend otherwise we generate invalid instruction encodings in the backend.

Differential Revision: https://reviews.llvm.org/D30875

Details

Committed
ctopperMar 13 2017, 10:16 AM
Differential Revision
D30875: [X86] Add checking of the scale argument to scatter/gather builtins
Parents
rL297641: Use numeric_limits<size_t>::max() instead of size_t(-1).
Branches
Unknown
Tags
Unknown