[LLVMbugs] [Bug 23594] New: Inconsistent order of x86 instruction prefixes with -via-file-asm
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed May 20 09:37:24 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=23594
Bug ID: 23594
Summary: Inconsistent order of x86 instruction prefixes with
-via-file-asm
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: MC
Assignee: unassignedbugs at nondot.org
Reporter: russell_gallop at sn.scee.net
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The order of x86 instruction prefixes is inconsistent if an asm file is written
out. Tested with revision 237107.
$ cat test.cpp
bool test() {
unsigned short val;
return __sync_bool_compare_and_swap_2(&val, 0, 0);
}
$ clang -c test.cpp && objdump -d test.o
test.o: file format elf64-x86-64
...
c: 66 f0 0f b1 4d fe lock cmpxchg %cx,-0x2(%rbp)
$ clang -via-file-asm -c test.cpp && objdump -d test.o
test.o: file format elf64-x86-64
...
c: f0 66 0f b1 4d fe lock cmpxchg %cx,-0x2(%rbp)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150520/bb61bc04/attachment.html>
More information about the llvm-bugs
mailing list