Index: lib/Target/R600/SIISelLowering.cpp =================================================================== --- lib/Target/R600/SIISelLowering.cpp +++ lib/Target/R600/SIISelLowering.cpp @@ -1684,7 +1684,8 @@ SDNode *Node; // We can't use COPY_TO_REGCLASS with FrameIndex arguments. - if (isa(Operand)) { + if (isa(Operand) || + isa(Operand)) { unsigned Opcode = Operand.getValueType() == MVT::i32 ? AMDGPU::S_MOV_B32 : AMDGPU::S_MOV_B64; Node = DAG.getMachineNode(Opcode, SDLoc(), Operand.getValueType(),