R600/SI: Select V_BFE_U32 for and+shift with a non-literal offset
[oota-llvm.git] / lib / Target / R600 / EvergreenInstructions.td
index 9f9472c1c17d2703d3191185a7f911ea2b3a8937..556014690095ac6297c9ec0f46cf0bc43b33ba36 100644 (file)
@@ -287,9 +287,8 @@ def BFE_INT_eg : R600_3OP <0x5, "BFE_INT",
   VecALU
 >;
 
-// XXX: This pattern is broken, disabling for now.  See comment in
-// AMDGPUInstructions.td for more info.
-//  def : BFEPattern <BFE_UINT_eg>;
+def : BFEPattern <BFE_UINT_eg, MOV_IMM_I32>;
+
 def BFI_INT_eg : R600_3OP <0x06, "BFI_INT",
   [(set i32:$dst, (AMDGPUbfi i32:$src0, i32:$src1, i32:$src2))],
   VecALU