OSDN Git Service

Revert "This pass, fixing an erratum in some LEON 2 processors..."
authorDaniel Cederman <cederman@gaisler.com>
Fri, 20 Apr 2018 07:53:27 +0000 (07:53 +0000)
committerDaniel Cederman <cederman@gaisler.com>
Fri, 20 Apr 2018 07:53:27 +0000 (07:53 +0000)
commita96bcd088de61ae9afd0e66dfc687d052f69b589
tree9af741be42ae0ceebfee56deffcaaa4693f4e603
parent1e2a2ae6decbca16c122a9ec19ba890a277caed6
Revert "This pass, fixing an erratum in some LEON 2 processors..."

Summary:
Reading Atmel's AT697E errata document this does not seem like a valid
workaround. While the text only mentions SDIV, it says that the ICC flags
can be wrong, and those are only generated by SDIVcc. Verification on
hardware shows that simply replacing SDIV with SDIVcc does not avoid
the bug with negative operands.

This reverts r283727.

Reviewers: lero_chris, jyknight

Reviewed By: jyknight

Subscribers: fedor.sergeev, jrtc27, llvm-commits

Differential Revision: https://reviews.llvm.org/D45813

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330397 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Sparc/LeonFeatures.td
lib/Target/Sparc/Sparc.td
lib/Target/Sparc/SparcISelDAGToDAG.cpp
lib/Target/Sparc/SparcSubtarget.cpp
lib/Target/Sparc/SparcSubtarget.h
test/CodeGen/SPARC/LeonReplaceSDIVPassUT.ll [deleted file]