R600: Expand SRA for v4i32/v2i32
[oota-llvm.git] / lib / Target / R600 / SIISelLowering.cpp
index 1a07affc195a5ae8b0e43e67450c4a8f995aa1a6..6bd82a5d774ad509a6e9d42869d9fa9007549628 100644 (file)
@@ -756,7 +756,7 @@ void SITargetLowering::adjustWritemask(MachineSDNode *&Node,
   if (Writemask == (1U << Lane)) {
     SDValue RC = DAG.getTargetConstant(AMDGPU::VReg_32RegClassID, MVT::i32);
     SDNode *Copy = DAG.getMachineNode(TargetOpcode::COPY_TO_REGCLASS,
-                                      DebugLoc(), MVT::f32,
+                                      DebugLoc(), Users[Lane]->getValueType(0),
                                       SDValue(Node, 0), RC);
     DAG.ReplaceAllUsesWith(Users[Lane], Copy);
     return;