mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Fix up some spacing & fix a typo in an assertion in cpValue2Value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14027 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d9a98de5c8
commit
e7c776118c
@ -929,11 +929,11 @@ SparcV9RegInfo::cpMem2RegMI(std::vector<MachineInstr*>& mvec,
|
||||
|
||||
void
|
||||
SparcV9RegInfo::cpValue2Value(Value *Src, Value *Dest,
|
||||
std::vector<MachineInstr*>& mvec) const {
|
||||
std::vector<MachineInstr*>& mvec) const {
|
||||
int RegType = getRegTypeForDataType(Src->getType());
|
||||
MachineInstr * MI = NULL;
|
||||
|
||||
switch( RegType ) {
|
||||
switch (RegType) {
|
||||
case IntRegType:
|
||||
MI = BuildMI(V9::ADDr, 3).addReg(Src).addMReg(getZeroRegNum())
|
||||
.addRegDef(Dest);
|
||||
@ -945,7 +945,7 @@ SparcV9RegInfo::cpValue2Value(Value *Src, Value *Dest,
|
||||
MI = BuildMI(V9::FMOVD, 2).addReg(Src).addRegDef(Dest);
|
||||
break;
|
||||
default:
|
||||
assert(0 && "Unknow RegType in CpValu2Value");
|
||||
assert(0 && "Unknown RegType in cpValue2Value");
|
||||
}
|
||||
|
||||
mvec.push_back(MI);
|
||||
|
Loading…
Reference in New Issue
Block a user