diff options
| author | David Woodhouse <dwmw2@infradead.org> | 2014-01-08 12:58:07 +0000 |
|---|---|---|
| committer | David Woodhouse <dwmw2@infradead.org> | 2014-01-08 12:58:07 +0000 |
| commit | 79dd505ce17b8e05f1759b6c17ac79204a2be4cf (patch) | |
| tree | 32cceb22b7b8d5036659dc9dfc00d376e7e257e1 /llvm/lib/Target/X86/X86FastISel.cpp | |
| parent | c178fbe2a26e9584fae287d2db064c1c194f24a2 (diff) | |
| download | bcm5719-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/X86FastISel.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/X86FastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index 7be2a14a44f..fd10a4a09ea 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -888,7 +888,7 @@ bool X86FastISel::X86SelectRet(const Instruction *I) { // Now emit the RET. MachineInstrBuilder MIB = - BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(X86::RET)); + BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(Subtarget->is64Bit() ? X86::RETQ : X86::RETL)); for (unsigned i = 0, e = RetRegs.size(); i != e; ++i) MIB.addReg(RetRegs[i], RegState::Implicit); return true; |

