[LLVMbugs] [Bug 830] llvm-gcc: single register contraint letters don't work for inputs

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jul 20 16:42:39 PDT 2006


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

sabre at nondot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
          Component|Backend: X86                |llvm-gcc
         OS/Version|Linux                       |All
            Product|libraries                   |tools
           Platform|PC                          |All
         Resolution|                            |FIXED
            Summary|more unsupported inline asm |llvm-gcc: single register
                   |constraints in X86 backend  |contraint letters don't work
                   |                            |for inputs
   Target Milestone|---                         |1.8
            Version|trunk                       |1.7



------- Additional Comments From sabre at nondot.org  2006-07-20 18:42 -------
Fixed.  Patch here:

===============================================================
====
--- llvm-convert.cpp    (revision 116353)
+++ llvm-convert.cpp    (working copy)
@@ -2268,7 +2268,7 @@
       // contains a single register, set the constraint to specify the specific
       // register instead of the class.  This way, the LLVM code doesn't need to
       // know about single register regclasses.
-      if (const char *Reg = GetSingleRegisterInRegClass(Constraint+1)) {
+      if (const char *Reg = GetSingleRegisterInRegClass(Constraint)) {
         ConstraintStr += '{';
         ConstraintStr += Reg;
         ConstraintStr += '}';


-Chris



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list