[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:33:39 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6552

Bob Wilson <bob.wilson at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bob.wilson at apple.com
         Resolution|                            |WORKSFORME

--- Comment #1 from Bob Wilson <bob.wilson at apple.com> 2010-03-09 00:33:38 CST ---
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 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.

-- 
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