HomePhabricator

[ARM] Lower unsigned saturation to USAT

Description

[ARM] Lower unsigned saturation to USAT

Summary:
Implement lower of unsigned saturation on an interval [0, k] where k + 1 is a power of two using USAT instruction in a similar way to how [~k, k] is lowered using SSAT on ARM models that supports it.

Patch by Marten Svanfeldt

Reviewers: t.p.northover, pbarrio, eastig, SjoerdMeijer, javed.absar, fhahn

Reviewed By: fhahn

Subscribers: fhahn, aemerson, javed.absar, llvm-commits, kristof.beyls

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

Details

Committed
fhahnDec 20 2017, 3:13 AM
Reviewer
fhahn
Differential Revision
D41348: [ARM] Lower unsigned saturation to USAT
Parents
rL321163: [AArch64][SVE] Re-submit patch series for ZIP1/ZIP2
Branches
Unknown
Tags
Unknown