mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-18 03:37:31 +00:00
Merging r213847:
------------------------------------------------------------------------ r213847 | dsanders | 2014-07-24 10:47:14 +0100 (Thu, 24 Jul 2014) | 8 lines [mips] Fix ll and sc instructions Summary: The ll and sc instructions for r6 and non-r6 are misplaced. This patch fixes that. Patch by Jyun-Yan You Differential Revision: http://reviews.llvm.org/D4578 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_35@213848 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
694c1192f0
commit
dfd65928bd
@ -969,16 +969,16 @@ MipsTargetLowering::emitAtomicBinary(MachineInstr *MI, MachineBasicBlock *BB,
|
||||
LL = Mips::LL_MM;
|
||||
SC = Mips::SC_MM;
|
||||
} else {
|
||||
LL = Subtarget.hasMips32r6() ? Mips::LL : Mips::LL_R6;
|
||||
SC = Subtarget.hasMips32r6() ? Mips::SC : Mips::SC_R6;
|
||||
LL = Subtarget.hasMips32r6() ? Mips::LL_R6 : Mips::LL;
|
||||
SC = Subtarget.hasMips32r6() ? Mips::SC_R6 : Mips::SC;
|
||||
}
|
||||
AND = Mips::AND;
|
||||
NOR = Mips::NOR;
|
||||
ZERO = Mips::ZERO;
|
||||
BEQ = Mips::BEQ;
|
||||
} else {
|
||||
LL = Subtarget.hasMips64r6() ? Mips::LLD : Mips::LLD_R6;
|
||||
SC = Subtarget.hasMips64r6() ? Mips::SCD : Mips::SCD_R6;
|
||||
LL = Subtarget.hasMips64r6() ? Mips::LLD_R6 : Mips::LLD;
|
||||
SC = Subtarget.hasMips64r6() ? Mips::SCD_R6 : Mips::SCD;
|
||||
AND = Mips::AND64;
|
||||
NOR = Mips::NOR64;
|
||||
ZERO = Mips::ZERO_64;
|
||||
|
Loading…
x
Reference in New Issue
Block a user