[PowerPC] Don't attempt a 64-bit pow2 division on PPC32
authorHal Finkel <hfinkel@anl.gov>
Tue, 23 Dec 2014 08:38:50 +0000 (08:38 +0000)
committerHal Finkel <hfinkel@anl.gov>
Tue, 23 Dec 2014 08:38:50 +0000 (08:38 +0000)
commit775294d1833592121e6ff3495a903d407f28aecb
treee3a6b539aa12ecd08e847157183f7adc0a9fd384
parentb9e302f3ca7abce64ca3e2851710cb8dca27f117
[PowerPC] Don't attempt a 64-bit pow2 division on PPC32

In r224033, in moving the signed power-of-2 division expansion into
BuildSDIVPow2, I accidentally made it possible to attempt the lowering for a
64-bit division on PPC32. This later asserts.

Fixes PR21928.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224758 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCISelLowering.cpp
test/CodeGen/PowerPC/sdiv-pow2.ll