Skip to content

[x86 disassembler] i386-only mode instructions are not shown as invalid in x86_64 #11036

Closed
@llvmbot

Description

@llvmbot
Bugzilla Link 10664
Resolution FIXED
Resolved on Nov 07, 2018 00:17
Version trunk
OS All
Blocks llvm/llvm-bugzilla-archive#10988
Reporter LLVM Bugzilla Contributor
CC @topperc

Extended Description

According to the "Intel® 64 and IA-32 Architectures Software Developer’s Manual
Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-23:
AAA—ASCII Adjust After Addition
64-bit: Invalid

Using llvm-mc built from trunk revision 135913:
$ echo '0x37'| ./llvm-mc -disassemble -triple="i386" aaa
$ echo '0x37'| ./llvm-mc -disassemble -triple="x86_64" aaa

There are many 32-bit only instructions that are similar to this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions