Skip to content

[x86 disassembler] is "fucompi" documented Intel syntax? #11775

@llvmbot

Description

@llvmbot
Bugzilla Link 11403
Version trunk
OS All
Blocks #11360
Reporter LLVM Bugzilla Contributor

Extended Description

From the "Intel® 64 and IA-32 Architectures Software Developer’s Manual
Volume 2 (2A & 2B): Instruction Set Reference, A-Z", p. 3-348:
DF E8+i FUCOMIP ST, ST(i)
Compare ST(0) with ST(i), check for ordered values, set status flags accordingly, and pop register stack

Using llvm-mc built from r144979:
$ echo '0xdf 0xe9' |./llvm-mc -disassemble -triple="x86_64" -x86-asm-syntax="intel"
fucompi ST(1)

I'm guessing that "fucompi" is some AT&T syntax shortcut to omit the ST operand, but this isn't documented anywhere by Intel that I can find. When specifying Intel syntax, should this disassemble as specified by Intel:

fucomip ST, ST(1)

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