HomePhabricator

[AArch64][SVE] Fix umin/umax lowering to handle out of range imm.

Authored by huihuiz on Oct 23 2020, 9:29 AM.

Description

[AArch64][SVE] Fix umin/umax lowering to handle out of range imm.

Immediate must be in an integer range [0,255] for umin/umax instruction.
Extend pattern matching helper SelectSVEArithImm() to take in value type
bitwidth when checking immediate value is in range or not.

Reviewed By: sdesmalen

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