diff options
| author | Chad Rosier <mcrosier@codeaurora.org> | 2015-12-04 21:38:44 +0000 |
|---|---|---|
| committer | Chad Rosier <mcrosier@codeaurora.org> | 2015-12-04 21:38:44 +0000 |
| commit | f3491496dcbaa236943c6a167399e85335acdc4d (patch) | |
| tree | fcc6694884877bbe646a6e1ee9eadd7cb4465565 /llvm/lib/Target/AArch64 | |
| parent | efadacfb145bc775bb71a30fcbcc166a33cd0536 (diff) | |
| download | bcm5719-llvm-f3491496dcbaa236943c6a167399e85335acdc4d.tar.gz bcm5719-llvm-f3491496dcbaa236943c6a167399e85335acdc4d.zip | |
[AArch64] Expand vector SDIVREM/UDIVREM operations.
http://reviews.llvm.org/D15214
Patch by Ana Pazos <apazos@codeaurora.org>!
llvm-svn: 254773
Diffstat (limited to 'llvm/lib/Target/AArch64')
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64ISelLowering.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp index f0fb03451b2..9340e7f0a55 100644 --- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp +++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp @@ -237,6 +237,10 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM, setOperationAction(ISD::SDIVREM, MVT::i32, Expand); setOperationAction(ISD::SDIVREM, MVT::i64, Expand); + for (MVT VT : MVT::vector_valuetypes()) { + setOperationAction(ISD::SDIVREM, VT, Expand); + setOperationAction(ISD::UDIVREM, VT, Expand); + } setOperationAction(ISD::SREM, MVT::i32, Expand); setOperationAction(ISD::SREM, MVT::i64, Expand); setOperationAction(ISD::UDIVREM, MVT::i32, Expand); |

