[LLVMbugs] [Bug 6552] [ARM inline asm] Assigning fp to a variable results in "Couldn't allocate output reg for constraint '{fp}'!"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Mar 8 22:43:41 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6552
Anton Korobeynikov <asl at math.spbu.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WORKSFORME |
--- Comment #2 from Anton Korobeynikov <asl at math.spbu.ru> 2010-03-09 00:43:41 CST ---
(In reply to comment #1)
> Trunk llvm-gcc does not produce that IR. Instead if correctly diagnoses this
> as an error:
>
> test.c: In function 'foo':
> test.c:5: error: invalid register name for 'fp'
The error is not shown for me here (arm-eabi cross-compiler) - sound like some
apple-local stuff?
> The error message is pretty good in this case. You need to specify the name
> of a specific register in this context and "fp" is not a register name.
No, it is a valid register name per ARM's specification. gcc accepts this code
as well.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list