mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-13 08:56:04 +00:00
PowerPC: Fix object creation with PPC::MTCRF8 instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165411 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
51aaadb7bd
commit
cd585084e5
@ -168,7 +168,9 @@ unsigned PPCMCCodeEmitter::
|
|||||||
get_crbitm_encoding(const MCInst &MI, unsigned OpNo,
|
get_crbitm_encoding(const MCInst &MI, unsigned OpNo,
|
||||||
SmallVectorImpl<MCFixup> &Fixups) const {
|
SmallVectorImpl<MCFixup> &Fixups) const {
|
||||||
const MCOperand &MO = MI.getOperand(OpNo);
|
const MCOperand &MO = MI.getOperand(OpNo);
|
||||||
assert((MI.getOpcode() == PPC::MTCRF || MI.getOpcode() == PPC::MFOCRF) &&
|
assert((MI.getOpcode() == PPC::MTCRF ||
|
||||||
|
MI.getOpcode() == PPC::MFOCRF ||
|
||||||
|
MI.getOpcode() == PPC::MTCRF8) &&
|
||||||
(MO.getReg() >= PPC::CR0 && MO.getReg() <= PPC::CR7));
|
(MO.getReg() >= PPC::CR0 && MO.getReg() <= PPC::CR7));
|
||||||
return 0x80 >> getPPCRegisterNumbering(MO.getReg());
|
return 0x80 >> getPPCRegisterNumbering(MO.getReg());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user