Disallow i64 div/rem in PPC32 counter loops
authorHal Finkel <hfinkel@anl.gov>
Fri, 7 Jun 2013 22:16:19 +0000 (22:16 +0000)
committerHal Finkel <hfinkel@anl.gov>
Fri, 7 Jun 2013 22:16:19 +0000 (22:16 +0000)
commit40be73bed71a69853720a7f0609cb1f2f77dc3bd
tree30e8912fe7aea4c1669fb807081042e35c09465b
parent95f24fbe4c0609ab30bbdb98c6d5c2155b35a584
Disallow i64 div/rem in PPC32 counter loops

On PPC32, [su]div,rem on i64 types are transformed into runtime library
function calls. As a result, they are not allowed in counter-based loops (the
counter-loops verification pass caught this error; this change fixes PR16169).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183581 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCCTRLoops.cpp
test/CodeGen/PowerPC/ctrloop-i64.ll [new file with mode: 0644]