From 1be4811d3405bf177b7fef1a56bcae9095e6921d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 13 May 2005 17:56:48 +0000 Subject: [PATCH] add 'ret imm' instruction git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21945 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86InstrInfo.td | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td index e956575efda..64dc14c1696 100644 --- a/lib/Target/X86/X86InstrInfo.td +++ b/lib/Target/X86/X86InstrInfo.td @@ -152,9 +152,11 @@ let isTerminator = 1 in // Control Flow Instructions... // -// Return instruction... +// Return instructions. let isTerminator = 1, isReturn = 1, isBarrier = 1 in def RET : I<0xC3, RawFrm, (ops), "ret">; +let isTerminator = 1, isReturn = 1, isBarrier = 1 in + def RETI : Ii16<0xC2, RawFrm, (ops i16imm:$amt), "ret $amt">; // All branches are RawFrm, Void, Branch, and Terminators let isBranch = 1, isTerminator = 1 in -- 2.34.1