https://bugs.llvm.org/show_bug.cgi?id=41507

            Bug ID: 41507
           Summary: [MSP430] inline assembly dropped
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: MSP430
          Assignee: unassignedb...@nondot.org
          Reporter: ndesaulni...@google.com
                CC: echri...@gmail.com, llvm-bugs@lists.llvm.org,
                    srhi...@google.com

$ 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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to