forked from OSchip/llvm-project
parent
ac64924a55
commit
d5918edf0d
|
@ -3142,25 +3142,29 @@ multiclass MipsHiLoRelocs<Instruction Lui, Instruction Addiu,
|
|||
def : MipsPat<(MipsHi tconstpool:$in), (Lui tconstpool:$in)>;
|
||||
def : MipsPat<(MipsHi texternalsym:$in), (Lui texternalsym:$in)>;
|
||||
|
||||
def : MipsPat<(MipsLo tglobaladdr:$in), (Addiu ZeroReg, tglobaladdr:$in)>;
|
||||
def : MipsPat<(MipsLo tglobaladdr:$in),
|
||||
(Addiu ZeroReg, tglobaladdr:$in)>;
|
||||
def : MipsPat<(MipsLo tblockaddress:$in),
|
||||
(Addiu ZeroReg, tblockaddress:$in)>;
|
||||
def : MipsPat<(MipsLo tjumptable:$in), (Addiu ZeroReg, tjumptable:$in)>;
|
||||
def : MipsPat<(MipsLo tconstpool:$in), (Addiu ZeroReg, tconstpool:$in)>;
|
||||
def : MipsPat<(MipsLo tjumptable:$in),
|
||||
(Addiu ZeroReg, tjumptable:$in)>;
|
||||
def : MipsPat<(MipsLo tconstpool:$in),
|
||||
(Addiu ZeroReg, tconstpool:$in)>;
|
||||
def : MipsPat<(MipsLo tglobaltlsaddr:$in),
|
||||
(Addiu ZeroReg, tglobaltlsaddr:$in)>;
|
||||
def : MipsPat<(MipsLo texternalsym:$in), (Addiu ZeroReg, texternalsym:$in)>;
|
||||
def : MipsPat<(MipsLo texternalsym:$in),
|
||||
(Addiu ZeroReg, texternalsym:$in)>;
|
||||
|
||||
def : MipsPat<(add GPROpnd:$hi, (MipsLo tglobaladdr:$lo)),
|
||||
(Addiu GPROpnd:$hi, tglobaladdr:$lo)>;
|
||||
(Addiu GPROpnd:$hi, tglobaladdr:$lo)>;
|
||||
def : MipsPat<(add GPROpnd:$hi, (MipsLo tblockaddress:$lo)),
|
||||
(Addiu GPROpnd:$hi, tblockaddress:$lo)>;
|
||||
(Addiu GPROpnd:$hi, tblockaddress:$lo)>;
|
||||
def : MipsPat<(add GPROpnd:$hi, (MipsLo tjumptable:$lo)),
|
||||
(Addiu GPROpnd:$hi, tjumptable:$lo)>;
|
||||
(Addiu GPROpnd:$hi, tjumptable:$lo)>;
|
||||
def : MipsPat<(add GPROpnd:$hi, (MipsLo tconstpool:$lo)),
|
||||
(Addiu GPROpnd:$hi, tconstpool:$lo)>;
|
||||
(Addiu GPROpnd:$hi, tconstpool:$lo)>;
|
||||
def : MipsPat<(add GPROpnd:$hi, (MipsLo tglobaltlsaddr:$lo)),
|
||||
(Addiu GPROpnd:$hi, tglobaltlsaddr:$lo)>;
|
||||
(Addiu GPROpnd:$hi, tglobaltlsaddr:$lo)>;
|
||||
}
|
||||
|
||||
// wrapper_pic
|
||||
|
|
Loading…
Reference in New Issue