Instruction formats added used to generate multiply instructions of V5TE.
llvm-svn: 41629
This commit is contained in:
parent
ff32b62942
commit
ab871baaf8
|
|
@ -73,43 +73,56 @@ namespace ARMII {
|
||||||
|
|
||||||
// Multiply instructions
|
// Multiply instructions
|
||||||
MulFrm = 2 << FormShift,
|
MulFrm = 2 << FormShift,
|
||||||
|
MulSMLAW = 3 << FormShift,
|
||||||
|
MulSMULW = 4 << FormShift,
|
||||||
|
MulSMLA = 5 << FormShift,
|
||||||
|
MulSMUL = 6 << FormShift,
|
||||||
|
|
||||||
// Branch instructions
|
// Branch instructions
|
||||||
Branch = 3 << FormShift,
|
Branch = 7 << FormShift,
|
||||||
BranchMisc = 4 << FormShift,
|
BranchMisc = 8 << FormShift,
|
||||||
|
|
||||||
// Data Processing instructions
|
// Data Processing instructions
|
||||||
DPRdIm = 5 << FormShift,
|
DPRdIm = 9 << FormShift,
|
||||||
DPRdReg = 6 << FormShift,
|
DPRdReg = 10 << FormShift,
|
||||||
DPRdSoReg = 7 << FormShift,
|
DPRdSoReg = 11 << FormShift,
|
||||||
DPRdMisc = 8 << FormShift,
|
DPRdMisc = 12 << FormShift,
|
||||||
|
|
||||||
DPRnIm = 9 << FormShift,
|
DPRnIm = 13 << FormShift,
|
||||||
DPRnReg = 10 << FormShift,
|
DPRnReg = 14 << FormShift,
|
||||||
DPRnSoReg = 11 << FormShift,
|
DPRnSoReg = 15 << FormShift,
|
||||||
|
|
||||||
DPRIm = 12 << FormShift,
|
DPRIm = 16 << FormShift,
|
||||||
DPRReg = 13 << FormShift,
|
DPRReg = 17 << FormShift,
|
||||||
DPRSoReg = 14 << FormShift,
|
DPRSoReg = 18 << FormShift,
|
||||||
|
|
||||||
DPRImS = 15 << FormShift,
|
DPRImS = 19 << FormShift,
|
||||||
DPRRegS = 16 << FormShift,
|
DPRRegS = 20 << FormShift,
|
||||||
DPRSoRegS = 17 << FormShift,
|
DPRSoRegS = 21 << FormShift,
|
||||||
|
|
||||||
// Load and Store
|
// Load and Store
|
||||||
LdFrm = 18 << FormShift,
|
LdFrm = 22 << FormShift,
|
||||||
StFrm = 19 << FormShift,
|
StFrm = 23 << FormShift,
|
||||||
|
|
||||||
// Miscellaneous arithmetic instructions
|
// Miscellaneous arithmetic instructions
|
||||||
ArithMisc = 20 << FormShift,
|
ArithMisc = 24 << FormShift,
|
||||||
|
|
||||||
// Thumb format
|
// Thumb format
|
||||||
ThumbFrm = 21 << FormShift,
|
ThumbFrm = 25 << FormShift,
|
||||||
|
|
||||||
// VFP format
|
// VFP format
|
||||||
VPFFrm = 22 << FormShift
|
VPFFrm = 26 << FormShift,
|
||||||
|
|
||||||
|
|
||||||
|
// Field shifts - such shifts are used to set field while generating
|
||||||
|
// machine instructions.
|
||||||
|
RegRsShift = 8,
|
||||||
|
RegRdShift = 12,
|
||||||
|
RegRnShift = 16,
|
||||||
|
L_BitShift = 20,
|
||||||
|
S_BitShift = 20,
|
||||||
|
U_BitShift = 23,
|
||||||
|
IndexShift = 24,
|
||||||
|
I_BitShift = 25
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue