[llvm-bugs] [Bug 30352] New: ARM Cortex ASM Statement not understood
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Sep 12 05:29:48 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30352
Bug ID: 30352
Summary: ARM Cortex ASM Statement not understood
Product: clang
Version: 3.9
Hardware: PC
OS: Windows NT
Status: NEW
Severity: release blocker
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: dan at walms.co.uk
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
ldr.w r0, =0xE000ED88
worked on 3.8.1
but now gives
FreeRTOS\Source\portable\GCC\ARM_CM4F\port.c:687:3: error: invalid operand for
instruction
" ldr.w r0, =0xE000ED88 \n" /* The FPU enable
bits are in the CPACR. */
^
<inline asm>:1:13: note: instantiated into assembly here
ldr.w r0, =0xE000ED88
^
1 error generated.
My actual source:
static void vPortEnableVFP( void )
{
__asm volatile
(
" ldr.w r0, =0xE000ED88 \n" /* The FPU enable bits are in the
CPACR. */
" ldr r1, [r0] \n"
" \n"
" orr r1, r1, #( 0xf << 20 ) \n" /* Enable CP10 and CP11
coprocessors, then save back. */
" str r1, [r0] \n"
" bx r14 "
);
}
--
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/20160912/08ba15ee/attachment-0001.html>
More information about the llvm-bugs
mailing list