[llvm-bugs] [Bug 26061] New: ARM "J" assembler constraint range for Thumb2 incorrect

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 7 04:30:27 PST 2016


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

            Bug ID: 26061
           Summary: ARM "J" assembler constraint range for Thumb2
                    incorrect
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: arnd at linaro.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

The arch/arm/probes/kprobes/core.c file in the Linux kernel fails to build in
Thumb-2 mode because of a small positive number passed as an argument to the
"J" constraint

arch/arm/probes/kprobes/core.c:540:3: error: invalid operand for inline asm
constraint 'J'

Gcc accepts the range from -4095 to +4095 for "J" in Thumb-2 mode and -255 to
-1 for Thumb-1 mode, while clang only accepts the -255 to -1 for both Thumb-2
and Thumb-1 mode.

-- 
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/20160107/4d9bfc0e/attachment.html>


More information about the llvm-bugs mailing list