[LLVMbugs] [Bug 1382] NEW: [inlineasm] 's' constraint bug
    bugzilla-daemon at cs.uiuc.edu 
    bugzilla-daemon at cs.uiuc.edu
       
    Thu May  3 09:18:19 PDT 2007
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=1382
           Summary: [inlineasm] 's' constraint bug
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sabre at nondot.org
This testcase:
int x[2] = { 1, 2 };
static inline void __attribute__((__always_inline__))
insn1 (int x) {
  asm volatile ("" :: "n" (x), "i" (x));
}
static inline void __attribute__((__always_inline__))
insn2 (const void *x) {
  asm volatile ("%0 %1" :: "s" (x), "i" (x));
}
void foo (void) {
  insn2 (&x[1]);
}
Should compile to:
_foo:
        _x+4 _x+4
        blr
We currently produce:
Invalid operand for inline asm constraint 's'!
-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