http://llvm.org/bugs/show_bug.cgi?id=19251
Bug ID: 19251
Summary: [x86 disassembler] prefix ordering may ignores opsize
and rep[n]e prefixes
Product: libraries
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
echo "0x66 0xF2 0xAF 0xF2 0x66 0xAF" | ./llvm-mc --disassemble
--triple=x86_64-linux-none
.text
scasl %es:(%rdi), %eax
repne
scasw %es:(%rdi), %ax
The first instruction decoding has the wrong operand size and ignores the repne
prefix. The second disassembly is what I would expect.
According to IDA (and a couple other disassemblers) they are equivalent.
seg000:00000000 66 F2 AF repne scasw
seg000:00000003 F2 66 AF repne scasw
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs