[llvm-bugs] [Bug 38765] New: armv7-m target uses invalid 'smmls' instruction

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 29 13:12:55 PDT 2018


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

            Bug ID: 38765
           Summary: armv7-m target uses invalid 'smmls' instruction
           Product: clang
           Version: 6.0
          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

Created attachment 20803
  --> https://bugs.llvm.org/attachment.cgi?id=20803&action=edit
linux/drivers/gpu/drm/drm_dp_mst_topology.c, preprocessed

Linux kernel randconfig testing on arm produced a build error:

$ clang+llvm-6.0.1-x86_64-linux-gnu-ubuntu-16.04/bin/clang
-Wparentheses-equality -O2 -Wno-unused -Wno-pointer-sign
--target=arm-linux-gnueabi -no-integrated-as -march=armv7-m -c
drm_dp_mst_topology.i

/tmp/drm_dp_mst_topology-bcb935.s: Assembler messages:
/tmp/drm_dp_mst_topology-bcb935.s:3067: Error: selected processor does not
support `smmls r2,r6,r0,r1' in Thumb mode

This does not happen with the integrated assembler, which accepts the smmls
instruction as valid even for armv7-m. According to
http://www.keil.com/support/man/docs/armasm/armasm_dom1361289901461.htm, it
should be valid only on armv7e-m but not armv7-m.

-- 
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/20180829/10700083/attachment.html>


More information about the llvm-bugs mailing list