[LLVMbugs] [Bug 20241] New: inline assemby does not respect --x86-asm-syntax

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 8 01:51:15 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20241

            Bug ID: 20241
           Summary: inline assemby does not respect --x86-asm-syntax
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: 1zeeky at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12752
  --> http://llvm.org/bugs/attachment.cgi?id=12752&action=edit
testcase

Memory references in inline assembly use AT&T syntax (e.g. "(%eax)" instead of
"[eax]"), regardless of the --x86-asm-syntax setting.

A testcase is attached. It is intended to be compiled with -no-integrated-as
-mllvm --x86-asm-syntax=intel -m32.

The output is "lock inc -4(%ebp)", wheras a "lock inc dword ptr [ebp - 4]" is
required.

-- 
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/20140708/36757925/attachment.html>


More information about the llvm-bugs mailing list