[LLVMbugs] [Bug 24100] New: Clang assumes that Cortex-M4 has an FPU by default
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jul 12 15:15:46 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24100
Bug ID: 24100
Summary: Clang assumes that Cortex-M4 has an FPU by default
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: ambrop7 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 14579
--> https://llvm.org/bugs/attachment.cgi?id=14579&action=edit
Test case, function that multiplies floats
When one compiles for arm-none-eabi with "-mcpu=cortex-m4", the generated code
will use floating point instructions. This is different from GCC (the
gcc-arm-embedded builds), which will use software floating point unless an FPU
is specified (e.g. -mfpu=fpv4-sp-d16 -mfloat-abi=hard). Note that are many
Cortex-M4 parts without an FPU.
Attached is a test case that can be compiled to assembly with:
arm-none-eabi-clang -mcpu=cortex-m4 -mthumb -S float.c -o -
--
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/20150712/4c5c6a9e/attachment.html>
More information about the llvm-bugs
mailing list