mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-14 09:56:23 +00:00
[mips][msa] copyPhysReg() should not set RegState::Define on result of CTCMSA.
Summary: The machine verifier reports 'Explicit operand marked as def' when it is manually specified even though it agrees with the operand info. Reviewers: sdardis Subscribers: dsanders, sdardis, llvm-commits Differential Revision: http://reviews.llvm.org/D21065 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272646 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7845b7dd45
commit
9cea6726d3
@ -129,9 +129,12 @@ void MipsSEInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
|
|||||||
.addReg(SrcReg, getKillRegState(KillSrc)).addImm(1 << 4)
|
.addReg(SrcReg, getKillRegState(KillSrc)).addImm(1 << 4)
|
||||||
.addReg(DestReg, RegState::ImplicitDefine);
|
.addReg(DestReg, RegState::ImplicitDefine);
|
||||||
return;
|
return;
|
||||||
|
} else if (Mips::MSACtrlRegClass.contains(DestReg)) {
|
||||||
|
BuildMI(MBB, I, DL, get(Mips::CTCMSA))
|
||||||
|
.addReg(DestReg)
|
||||||
|
.addReg(SrcReg, getKillRegState(KillSrc));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else if (Mips::MSACtrlRegClass.contains(DestReg))
|
|
||||||
Opc = Mips::CTCMSA;
|
|
||||||
}
|
}
|
||||||
else if (Mips::FGR32RegClass.contains(DestReg, SrcReg))
|
else if (Mips::FGR32RegClass.contains(DestReg, SrcReg))
|
||||||
Opc = Mips::FMOV_S;
|
Opc = Mips::FMOV_S;
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
; Test the MSA ctcmsa and cfcmsa intrinsics (which are encoded with the ELM
|
; Test the MSA ctcmsa and cfcmsa intrinsics (which are encoded with the ELM
|
||||||
; instruction format).
|
; instruction format).
|
||||||
|
|
||||||
; RUN: llc -march=mips -mattr=+msa,+fp64 < %s | FileCheck %s
|
; RUN: llc -march=mips -mattr=+msa,+fp64 -verify-machineinstrs < %s | FileCheck %s
|
||||||
; RUN: llc -march=mipsel -mattr=+msa,+fp64 < %s | FileCheck %s
|
; RUN: llc -march=mipsel -mattr=+msa,+fp64 -verify-machineinstrs < %s | FileCheck %s
|
||||||
|
|
||||||
define i32 @msa_ir_cfcmsa_test() nounwind {
|
define i32 @msa_ir_cfcmsa_test() nounwind {
|
||||||
entry:
|
entry:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user