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)
commit45571780617feb60784c7743d718970d2dfe8e5b
tree7874f1b085d999bf46fa387a8d0e3ae03df497fe
parentc67b3ffba743e8de1c46b5363bf9801e20da5744
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

llvm-svn: 330397
llvm/lib/Target/Sparc/LeonFeatures.td
llvm/lib/Target/Sparc/Sparc.td
llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp
llvm/lib/Target/Sparc/SparcSubtarget.cpp
llvm/lib/Target/Sparc/SparcSubtarget.h
llvm/test/CodeGen/SPARC/LeonReplaceSDIVPassUT.ll [deleted file]