llvm.org GIT mirror llvm / dfd6592
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 Daniel Sanders 5 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
968968 LL = Mips::LL_MM;
969969 SC = Mips::SC_MM;
970970 } else {
971 LL = Subtarget.hasMips32r6() ? Mips::LL : Mips::LL_R6;
972 SC = Subtarget.hasMips32r6() ? Mips::SC : Mips::SC_R6;
971 LL = Subtarget.hasMips32r6() ? Mips::LL_R6 : Mips::LL;
972 SC = Subtarget.hasMips32r6() ? Mips::SC_R6 : Mips::SC;
973973 }
974974 AND = Mips::AND;
975975 NOR = Mips::NOR;
976976 ZERO = Mips::ZERO;
977977 BEQ = Mips::BEQ;
978978 } else {
979 LL = Subtarget.hasMips64r6() ? Mips::LLD : Mips::LLD_R6;
980 SC = Subtarget.hasMips64r6() ? Mips::SCD : Mips::SCD_R6;
979 LL = Subtarget.hasMips64r6() ? Mips::LLD_R6 : Mips::LLD;
980 SC = Subtarget.hasMips64r6() ? Mips::SCD_R6 : Mips::SCD;
981981 AND = Mips::AND64;
982982 NOR = Mips::NOR64;
983983 ZERO = Mips::ZERO_64;