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

            Bug ID: 45070
           Summary: invalid instruction when using ldrht/ldrsht/ldrsbt
                    without immediate offset
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: ARM
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

Trying to assemble these instructions without offset (which is optional
according to the ARM ARM) leads to invalid instruction:

        .syntax unified
        .text
        .arch   armv6t2
        .arm
        ldrht r5, [r4]

Building with:

$ llvm-mc --triple=armv6t2-linux-gnueabihf repr-armv6t2.S 
        .text
        .arch   armv6t2

        .code   32
repr-armv6t2.S:5:2: error: invalid instruction, any one of the following would
fix this:
        ldrht r5, [r4]
        ^
repr-armv6t2.S:5:16: note: too few operands for instruction
        ldrht r5, [r4]
                      ^
repr-armv6t2.S:5:2: note: instruction requires: thumb2
        ldrht r5, [r4]
        ^


This appeared when trying to build Linux with Clang's integrated assembler:
https://github.com/ClangBuiltLinux/linux/issues/909

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

Reply via email to