From b6517850fb5624e10c491747c7a4df87b2513695 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Tue, 12 Nov 2013 19:04:45 +0000 Subject: [PATCH] Expand rotate instructions on sparcv9 as well. llvm-svn: 194500 --- llvm/lib/Target/Sparc/SparcISelLowering.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/lib/Target/Sparc/SparcISelLowering.cpp b/llvm/lib/Target/Sparc/SparcISelLowering.cpp index fe5c7cb372ee..219d906c3870 100644 --- a/llvm/lib/Target/Sparc/SparcISelLowering.cpp +++ b/llvm/lib/Target/Sparc/SparcISelLowering.cpp @@ -1409,6 +1409,8 @@ SparcTargetLowering::SparcTargetLowering(TargetMachine &TM) setOperationAction(ISD::CTLZ , MVT::i64, Expand); setOperationAction(ISD::CTLZ_ZERO_UNDEF, MVT::i64, Expand); setOperationAction(ISD::BSWAP, MVT::i64, Expand); + setOperationAction(ISD::ROTL , MVT::i64, Expand); + setOperationAction(ISD::ROTR , MVT::i64, Expand); } // FIXME: There are instructions available for ATOMIC_FENCE