summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-04-30 01:53:12 +0000
committerCraig Topper <craig.topper@intel.com>2018-04-30 01:53:12 +0000
commit64e7a16fe4e8e16792aae1469f298ab658a13454 (patch)
tree9a9ab9b1057922adb08b9013d8d1f1d1a01cfd94 /llvm/lib
parentb2bf3da15249752cbb0b95507bf3d070fab74491 (diff)
downloadbcm5719-llvm-64e7a16fe4e8e16792aae1469f298ab658a13454.tar.gz
bcm5719-llvm-64e7a16fe4e8e16792aae1469f298ab658a13454.zip
[X86] Remove support for accepting 'fnstsw %eax' and 'fnstsw %al'.
I assume this was done because gas accepted it at one point, but current versions of gas don't. llvm-svn: 331154
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86InstrInfo.td5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.td b/llvm/lib/Target/X86/X86InstrInfo.td
index ad743760d53..228c46e6d84 100644
--- a/llvm/lib/Target/X86/X86InstrInfo.td
+++ b/llvm/lib/Target/X86/X86InstrInfo.td
@@ -3151,10 +3151,7 @@ def : InstAlias<"fsub{r|}p\t{%st(0), $op|$op, st(0)}", (SUB_FPrST0 RST:$op)>;
def : InstAlias<"fdiv{|r}p\t{%st(0), $op|$op, st(0)}", (DIVR_FPrST0 RST:$op)>;
def : InstAlias<"fdiv{r|}p\t{%st(0), $op|$op, st(0)}", (DIV_FPrST0 RST:$op)>;
-// We accept "fnstsw %eax" even though it only writes %ax.
-def : InstAlias<"fnstsw\t{%eax|eax}", (FNSTSW16r)>;
-def : InstAlias<"fnstsw\t{%al|al}" , (FNSTSW16r)>;
-def : InstAlias<"fnstsw" , (FNSTSW16r)>;
+def : InstAlias<"fnstsw" , (FNSTSW16r), 0>;
// lcall and ljmp aliases. This seems to be an odd mapping in 64-bit mode, but
// this is compatible with what GAS does.
OpenPOWER on IntegriCloud