https://bugs.llvm.org/show_bug.cgi?id=34478
Bug ID: 34478
Summary: MOV16ms uses operand size override prefix
Product: libraries
Version: 4.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: X86
Assignee: unassignedb...@nondot.org
Reporter: kadircetinkaya.06...@gmail.com
CC: llvm-bugs@lists.llvm.org
When assembling an instruction like
movw %fs, (%rsi)
LLVM encodes with:
66 8c 26 mov %fs,(%rsi)
which adds operand size override prefix whereas gcc doesn't append 66 and
encodes the instruction as:
8c 26 mov %fs,(%rsi)
Intel defines the behavior of the instruction on page 694 of Instruction Set
Reference, July 2017 and it doesn't provide detailed information for that case,
but I feel like using only the least 16 bits of an address might cause problems
in 64 bit mode.
Do we know if it is a bug or X86InstrSystem.td contains OpSize16 for MOV16ms on
a specific purpose?
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs