summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2019-07-13 14:48:54 +0000
committerDavid Green <david.green@arm.com>2019-07-13 14:48:54 +0000
commit701bf714dbcab718067deaf4f343ce3e872b8578 (patch)
tree99bf26ae76f6524c482abefde3d4a814005dcbb4 /llvm/lib/Target/ARM/ARMISelLowering.cpp
parentac5bcbeb9f8c6ffd49f533d10241c23837336de7 (diff)
downloadbcm5719-llvm-701bf714dbcab718067deaf4f343ce3e872b8578.tar.gz
bcm5719-llvm-701bf714dbcab718067deaf4f343ce3e872b8578.zip
[ARM] MVE integer min and max
This simply makes the MVE integer min and max instructions legal and adds the relevant patterns for them. Differential Revision: https://reviews.llvm.org/D64026 llvm-svn: 366004
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 2d8fadb7241..e538353fc76 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -250,6 +250,10 @@ void ARMTargetLowering::addMVEVectorTypes(bool HasMVEFP) {
setOperationAction(ISD::INSERT_VECTOR_ELT, VT, Custom);
setOperationAction(ISD::EXTRACT_VECTOR_ELT, VT, Custom);
setOperationAction(ISD::BUILD_VECTOR, VT, Custom);
+ setOperationAction(ISD::SMIN, VT, Legal);
+ setOperationAction(ISD::SMAX, VT, Legal);
+ setOperationAction(ISD::UMIN, VT, Legal);
+ setOperationAction(ISD::UMAX, VT, Legal);
// No native support for these.
setOperationAction(ISD::UDIV, VT, Expand);
OpenPOWER on IntegriCloud