[AArch64][GlobalISel] Select G_SDIV/G_UDIV.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 18 Aug 2016 15:17:13 +0000 (15:17 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 18 Aug 2016 15:17:13 +0000 (15:17 +0000)
commit1d0560b14dc214d108072057dfe7ab5d79bd7e67
tree84a7f2eee1438fc9f3cbe631b650426f2dd10b9e
parent13db94540ca2647e6ee9577910f1fc2c1aedf32b
[AArch64][GlobalISel] Select G_SDIV/G_UDIV.

There is no REM instruction; that will require an expansion.
It's not obvious that should be done in select, rather than as a
(custom?) legalization.

llvm-svn: 279074
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/lib/Target/AArch64/AArch64MachineLegalizer.cpp
llvm/test/CodeGen/AArch64/GlobalISel/arm64-instructionselect.mir