R600: Swap the legality of rotl and rotr
[oota-llvm.git] / lib / Target / R600 / AMDGPUISelLowering.cpp
index a266df535d56b46aa80733232b3c93f3fb82c55e..b3c51e3615e1d57659151940b179c85f5df4daef 100644 (file)
@@ -46,6 +46,9 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) :
   setOperationAction(ISD::FFLOOR, MVT::f32, Legal);
   setOperationAction(ISD::FRINT,  MVT::f32, Legal);
 
+  // The hardware supports ROTR, but not ROTL
+  setOperationAction(ISD::ROTL, MVT::i32, Expand);
+
   // Lower floating point store/load to integer store/load to reduce the number
   // of patterns in tablegen.
   setOperationAction(ISD::STORE, MVT::f32, Promote);