https://llvm.org/bugs/show_bug.cgi?id=25678

            Bug ID: 25678
           Summary: No error for conflict between inputs\outputs and
                    clobber list
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

According to extended asm syntax, a case where the clobber list includes a
variable from the inputs or outputs should be an error - conflict.
for example:

# define REG1 "%eax"
void *foo (void *p){ 
  void *a;
  register void *q asm (REG1) = p;
  register void *q1 asm (REG2) = a;
  asm ("not %0" : "=r" (q) : "0" (q1) : REG1); /* { dg-error "conflict" } */
}

This should conflict with the output - q which is eax, and REG1 which is eax
aswell.


a review with a solution will be shortly posted.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to