Skip to content

[x86 disassembler] crc32 not disassembled correctly #11074

Closed
@llvmbot

Description

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

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-236:
CRC32 — Accumulate CRC32 Value
F2 0F 38 F0 /r

Clang on OSX assembles:
crc32 %al, %eax

To:
F2 0F 38 F0 C0

With llvm-mc built from trunk revision 135913:
$ echo '0xf2 0x0f 0x38 0xf0 0xc0'| ./llvm-mc -disassemble -triple="x86_64"
:1:1: warning: invalid instruction encoding
0xf2 0x0f 0x38 0xf0 0xc0
^
:1:21: warning: invalid instruction encoding
0xf2 0x0f 0x38 0xf0 0xc0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions