Skip to content

Commit 36dbb8f

Browse files
author
Cameron McInally
committed
[SVE] Lower fixed length UDIV to scalable
Pretty much just a copy of the SDIV patches (D86114 and D85982) with string replacement. Differential Revision: https://reviews.llvm.org/D86316
1 parent 4665901 commit 36dbb8f

File tree

2 files changed

+483
-0
lines changed

2 files changed

+483
-0
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,14 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
10091009
setOperationAction(ISD::SMAX, MVT::v2i64, Custom);
10101010
setOperationAction(ISD::SMIN, MVT::v1i64, Custom);
10111011
setOperationAction(ISD::SMIN, MVT::v2i64, Custom);
1012+
setOperationAction(ISD::UDIV, MVT::v8i8, Custom);
1013+
setOperationAction(ISD::UDIV, MVT::v16i8, Custom);
1014+
setOperationAction(ISD::UDIV, MVT::v4i16, Custom);
1015+
setOperationAction(ISD::UDIV, MVT::v8i16, Custom);
1016+
setOperationAction(ISD::UDIV, MVT::v2i32, Custom);
1017+
setOperationAction(ISD::UDIV, MVT::v4i32, Custom);
1018+
setOperationAction(ISD::UDIV, MVT::v1i64, Custom);
1019+
setOperationAction(ISD::UDIV, MVT::v2i64, Custom);
10121020
setOperationAction(ISD::UMAX, MVT::v1i64, Custom);
10131021
setOperationAction(ISD::UMAX, MVT::v2i64, Custom);
10141022
setOperationAction(ISD::UMIN, MVT::v1i64, Custom);
@@ -1135,6 +1143,7 @@ void AArch64TargetLowering::addTypeForFixedLengthSVE(MVT VT) {
11351143
setOperationAction(ISD::STORE, VT, Custom);
11361144
setOperationAction(ISD::SUB, VT, Custom);
11371145
setOperationAction(ISD::TRUNCATE, VT, Custom);
1146+
setOperationAction(ISD::UDIV, VT, Custom);
11381147
setOperationAction(ISD::UMAX, VT, Custom);
11391148
setOperationAction(ISD::UMIN, VT, Custom);
11401149
setOperationAction(ISD::XOR, VT, Custom);

0 commit comments

Comments
 (0)