[llvm-bugs] [Bug 25678] New: No error for conflict between inputs\outputs and clobber list
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Nov 30 04:11:32 PST 2015
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: unassignedbugs at nondot.org
Reporter: ziv.izhar at intel.com
CC: llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151130/bc9f937c/attachment.html>
More information about the llvm-bugs
mailing list