The following patch http://gcc.gnu.org/ml/gcc-patches/2001-09/msg00632.html that converts some of the peepholes in sparc.md to peephole2 is unreviewed.