<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 - [MSP430] inline assembly dropped"
   href="https://bugs.llvm.org/show_bug.cgi?id=41507">41507</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[MSP430] inline assembly dropped
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </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>enhancement
          </td>
        </tr>

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

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

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

        <tr>
          <th>Reporter</th>
          <td>ndesaulniers@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>echristo@gmail.com, llvm-bugs@lists.llvm.org, srhines@google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>$ cat x.c 
static int baz;
void foo() {
  asm("mov.w $0, r1":: "i"(&baz));
}

$ msp430-gcc -O2 -c x.c
$ llvm-objdump -d -r x.o

x.o:    file format ELF32-msp430

Disassembly of section .text:
0000000000000000 foo:
       0:       11 40 00 00     mov     0, r1
                        00000002:  R_MSP430_16_PCREL    $0
       4:       30 41   ret

$ clang -target msp430-linux-gnu -c x.c
$ llvm-objdump -d -r x.o               

x.o:    file format ELF32-msp430

Disassembly of section .text:
0000000000000000 foo:
       0:       30 41   ret


Where did my inline asm go? (Note that adding -no-integrated-as to the clang
invocation produces a ton of assembler errors).  Low priority, but something
seems broken with this backend.</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>