[ARM] Add MVE lowering for fptosi.sat
authorDavid Green <david.green@arm.com>
Wed, 1 Sep 2021 21:38:47 +0000 (22:38 +0100)
committerDavid Green <david.green@arm.com>
Wed, 1 Sep 2021 21:38:47 +0000 (22:38 +0100)
commit49476a4d66b3c46af3d3c750e9def21f93da52bc
treeea1a4a6b1c25f89c9e5d5f566b1f0443f0b86f1a
parent786a140650990ce9f760da5ffeb5fad0b93687d9
[ARM] Add MVE lowering for fptosi.sat

This adds lowering of the llvm.fptosi.sat and llvm.fptoui.sat intinsics,
selecting a VCVT instruction which under MVE will inherently perform the
saturate.

Differential Revision: https://reviews.llvm.org/D107865
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/ARM/ARMInstrMVE.td
llvm/test/CodeGen/Thumb2/mve-fptosi-sat-vector.ll
llvm/test/CodeGen/Thumb2/mve-fptoui-sat-vector.ll