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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs