<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Disabling code generation optimizations results in wrong inline assembly syntax selection"
   href="https://bugs.llvm.org/show_bug.cgi?id=43575">43575</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Disabling code generation optimizations  results in wrong inline assembly syntax selection
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>9.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: X86
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>moritz.maxeiner@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>craig.topper@gmail.com, llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk, spatel+llvm@rotateright.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22632" name="attach_22632" title="Minimal C example reproducing the error">attachment 22632</a> <a href="attachment.cgi?id=22632&action=edit" title="Minimal C example reproducing the error">[details]</a></span>
Minimal C example reproducing the error

On x86_64 Linux with LLVM 9 LLVM IR like

test.ll
=======
define void @exit(i32 %status)"
{
    call void asm sideeffect inteldialect "mov rax, 60; syscall", ""()
    ret void
}

$ llc test.ll -o test.o -filetype=obj -O=0

fails with 

<inline asm>:1:2: error: unknown use of instruction mnemonic without a size
suffix
        mov rax, 60; syscall
        ^

, whereas
$ llc test.ll -o test.o -filetype=obj -O=1

works fine. This seems wrong to me, as correct selection of the inline assembly
syntax shouldn't be influenced by the code optimization level. I've also
attached a minimal C example showcasing the error.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>