projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[mips] Modify definitions of floating point load and store instructions.
[oota-llvm.git]
/
lib
/
Target
/
Mips
/
MipsInstrFormats.td
diff --git
a/lib/Target/Mips/MipsInstrFormats.td
b/lib/Target/Mips/MipsInstrFormats.td
index fb217cf0a3422467891b8b895ab856387f4284d0..83c3c63a3a38548281f11b3c193aaca55f89b84b 100644
(file)
--- a/
lib/Target/Mips/MipsInstrFormats.td
+++ b/
lib/Target/Mips/MipsInstrFormats.td
@@
-394,3
+394,15
@@
class MFC1_FM<bits<5> funct> {
let Inst{15-11} = fs;
let Inst{10-0} = 0;
}
+
+class LW_FM<bits<6> op> {
+ bits<5> rt;
+ bits<21> addr;
+
+ bits<32> Inst;
+
+ let Inst{31-26} = op;
+ let Inst{25-21} = addr{20-16};
+ let Inst{20-16} = rt;
+ let Inst{15-0} = addr{15-0};
+}