summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FloatingPoint.cpp
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2014-01-08 12:58:07 +0000
committerDavid Woodhouse <dwmw2@infradead.org>2014-01-08 12:58:07 +0000
commit79dd505ce17b8e05f1759b6c17ac79204a2be4cf (patch)
tree32cceb22b7b8d5036659dc9dfc00d376e7e257e1 /llvm/lib/Target/X86/X86FloatingPoint.cpp
parentc178fbe2a26e9584fae287d2db064c1c194f24a2 (diff)
downloadbcm5719-llvm-79dd505ce17b8e05f1759b6c17ac79204a2be4cf.tar.gz
bcm5719-llvm-79dd505ce17b8e05f1759b6c17ac79204a2be4cf.zip
[x86] Disambiguate RET[QL] and fix aliases for 16-bit mode
I couldn't see how to do this sanely without splitting RETQ from RETL. Eric says: "sad about the inability to roundtrip them now, but...". I have no idea what that means, but perhaps it wants preserving in the commit comment. llvm-svn: 198756
Diffstat (limited to 'llvm/lib/Target/X86/X86FloatingPoint.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FloatingPoint.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FloatingPoint.cpp b/llvm/lib/Target/X86/X86FloatingPoint.cpp
index 48470da0164..d6d0bbc1b5b 100644
--- a/llvm/lib/Target/X86/X86FloatingPoint.cpp
+++ b/llvm/lib/Target/X86/X86FloatingPoint.cpp
@@ -1671,7 +1671,8 @@ void FPS::handleSpecialFP(MachineBasicBlock::iterator &I) {
break;
}
- case X86::RET:
+ case X86::RETQ:
+ case X86::RETL:
case X86::RETI:
// If RET has an FP register use operand, pass the first one in ST(0) and
// the second one in ST(1).
OpenPOWER on IntegriCloud