aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-06-09 21:54:58 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-06-09 21:54:58 +0000
commit40e7fdc05aaeca59d2e72e2597706d7a592505a5 (patch)
treefa89b2d0745d9f603aae6307c83c6ada81970f17 /lib/Target
parente8a6bee3c9cb3e4dd68e5a455f1e49f78adc58da (diff)
downloadexternal_llvm-40e7fdc05aaeca59d2e72e2597706d7a592505a5.zip
external_llvm-40e7fdc05aaeca59d2e72e2597706d7a592505a5.tar.gz
external_llvm-40e7fdc05aaeca59d2e72e2597706d7a592505a5.tar.bz2
Fix encoding of ST*FSR instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/SparcV9/SparcV9.td14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Target/SparcV9/SparcV9.td b/lib/Target/SparcV9/SparcV9.td
index f31c364..3cfe49e 100644
--- a/lib/Target/SparcV9/SparcV9.td
+++ b/lib/Target/SparcV9/SparcV9.td
@@ -739,17 +739,17 @@ def STQFr : F3_1rd<3, 0b100110, "stq">; // stq r, [r+r]
def STQFi : F3_2rd<3, 0b100110, "stq">; // stq r, [r+i]
*/
-// FIXME: An encoding needs to be chosen here, because STFSRx expect rd=0,
-// while STXFSRx expect rd=1, but assembly syntax dictates %fsr as first arg.
-// These are being disabled because they aren't used in the SparcV9 backend.
+// WARNING: We encode %fsr as 1, because we only use STXFSRx, but STFSRx wants
+// you to encode %fsr as 0. If STFSRx instrs are ever enabled, this will
+// need to be worked around.
/*
let isDeprecated = 1 in {
- def STFSRr : F3_1<3, 0b100101, "st">; // st %fsr, [r+r]
- def STFSRi : F3_2<3, 0b100101, "st">; // st %fsr, [r+i]
+ def STFSRr : F3_1rd<3, 0b100101, "st">; // st %fsr, [r+r]
+ def STFSRi : F3_2rd<3, 0b100101, "st">; // st %fsr, [r+i]
}
*/
-def STXFSRr : F3_1<3, 0b100101, "stx">; // stx %fsr, [r+r]
-def STXFSRi : F3_2<3, 0b100101, "stx">; // stx %fsr, [r+i]
+def STXFSRr : F3_1rd<3, 0b100101, "stx">; // stx %fsr, [r+r]
+def STXFSRi : F3_2rd<3, 0b100101, "stx">; // stx %fsr, [r+i]
// Section A.53: Store Floating-Point into Alternate Space - p227
// Not currently used in the SparcV9 backend