mirror of https://github.com/microsoft/clang.git
CodeGen: Simplify consecutive '%' modifiers
LLVM the consecutive '%' modifiers are redundant, skip them. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225602 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1bd59c97fb
commit
0dcea0929b
|
@ -1660,8 +1660,9 @@ SimplifyConstraint(const char *Constraint, const TargetInfo &Target,
|
|||
Constraint++;
|
||||
break;
|
||||
case '&':
|
||||
Result += '&';
|
||||
while (Constraint[1] && Constraint[1] == '&')
|
||||
case '%':
|
||||
Result += *Constraint;
|
||||
while (Constraint[1] && Constraint[1] == *Constraint)
|
||||
Constraint++;
|
||||
break;
|
||||
case ',':
|
||||
|
|
|
@ -255,3 +255,10 @@ void t30(int len) {
|
|||
// CHECK: @t30
|
||||
// CHECK: call void asm sideeffect "", "=*&rm,0,~{dirflag},~{fpsr},~{flags}"
|
||||
}
|
||||
|
||||
void t31(int len) {
|
||||
__asm__ volatile(""
|
||||
: "+%%rm"(len), "+rm"(len));
|
||||
// CHECK: @t31
|
||||
// CHECK: call void asm sideeffect "", "=*%rm,=*rm,0,1,~{dirflag},~{fpsr},~{flags}"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue