[LLVMbugs] [Bug 1115] NEW: Cannot handle multiple ASM constraints

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 16 01:50:12 PST 2007


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

           Summary: Cannot handle multiple ASM constraints
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: isanbard at gmail.com


This program:

unsigned long int foo(unsigned long int in1, unsigned long int in2)
{
  unsigned long int result;

  __asm__("{a%I5|add%I5c} %0,%1,%2"
          : "=&r"(result)
          : "r"(in1), "rI"(in2));
  return result;
}

Gives this ICE:

$ llvm-gcc.install/bin/gcc -c bad.c 
bad.c: In function 'foo':
bad.c:5: error: operand number out of range
/Users/wendling/llvm/llvm.src/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:2459: failed assertion 
`Constraints[i].Codes.size() == 1 && "Only handles one code so far!"'
bad.c: At top level:
bad.c:9: internal compiler error: Abort trap
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.org/bugs> for instructions.

This is more fall-out from the GMP compilation.

-bw



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