[llvm-bugs] [Bug 32805] New: nopl %ebx is not recognized as valid assembly

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 26 08:27:02 PDT 2017


http://bugs.llvm.org/show_bug.cgi?id=32805

            Bug ID: 32805
           Summary: nopl %ebx is not recognized as valid assembly
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: Pidgeot18 at gmail.com
                CC: llvm-bugs at lists.llvm.org

$ echo "nopl %ebx" | llvm-mc
        .text
<stdin>:1:6: error: invalid operand for instruction
nopl %ebx
     ^~~~

$ echo "nopl %ebx" | as && objdump -d a.out

a.out:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <.text>:
   0:   0f 1f c3                nop    %ebx


Although the manual recommends that the multi-byte sequences use only the
memory forms, I don't see much of a reason to ignore the register forms for the
Mod/RM byte.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170426/9a81c913/attachment.html>


More information about the llvm-bugs mailing list