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

            Bug ID: 30356
           Summary: ARM/Windows compilation broken by r278788
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedb...@nondot.org
          Reporter: mar...@martin.st
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Created attachment 17246
  --> https://llvm.org/bugs/attachment.cgi?id=17246&action=edit
Example that shows the issue

The changes in r278788 (with r278789 applied on top) broke compilation of code
containing divisions for ARM/Windows.

When compiling, it errors out with "fatal error: error in backend: out of range
pc-relative fixup value". When the new changes are commented out, the resulting
code seems just fine though, the included CBZ branches are well in range and
behave properly.

The issue can be reproduced by compiling the attached C source file:

clang -target armv7-windows-msvc test.c -c -o test.o -O2

(It can also be reproduced without -O2.)

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

Reply via email to