[llvm-commits] [PATCH] Add RETW and LRETW instructions

Charles Davis cdavis at mymail.mines.edu
Sat Mar 24 14:32:44 PDT 2012


On Mar 23, 2012, at 6:24 PM, Joerg Sonnenberger wrote:
> Missing test case?
Added.

On Mar 24, 2012, at 10:40 AM, Kay Tiong Khoo wrote:
> Can you make these print correctly with Intel syntax? I assume the opcode remains "ret" but there's some "[word]" decorator suffix?
In the Intel syntax, there is no size suffix. There's a suffix to indicate near vs. far return, but the processor is actually expected to infer whether it should do a 32-bit or 16-bit return based on the target segment. I went ahead and added "retf" mnemonics for Intel syntax. (I wanted to add "retn" mnemonics, too, but I couldn't figure out how to make that work.)

Anyway, here is a patch that addresses all of Kay and Joerg's concerns.

Chip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120324/ad545f7b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: retw.patch
Type: application/octet-stream
Size: 1661 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120324/ad545f7b/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120324/ad545f7b/attachment-0001.html>


More information about the llvm-commits mailing list