зеркало из https://github.com/microsoft/clang-1.git
Fixed another double-char in PPC-specific asm constraints.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106812 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
8e6065af76
Коммит
56b6ecad6c
|
@ -485,12 +485,16 @@ public:
|
||||||
// asm ("st %1,%0" : "=m" (mem) : "r" (val));
|
// asm ("st %1,%0" : "=m" (mem) : "r" (val));
|
||||||
// is not. Use es rather than m if you don't want the base
|
// is not. Use es rather than m if you don't want the base
|
||||||
// register to be updated.
|
// register to be updated.
|
||||||
case 'es':// A “stable” memory operand; that is, one which does not
|
case 'e':
|
||||||
|
if (Name[1] != 's')
|
||||||
|
return false;
|
||||||
|
// es: A “stable” memory operand; that is, one which does not
|
||||||
// include any automodification of the base register. Unlike
|
// include any automodification of the base register. Unlike
|
||||||
// `m', this constraint can be used in asm statements that
|
// `m', this constraint can be used in asm statements that
|
||||||
// might access the operand several times, or that might not
|
// might access the operand several times, or that might not
|
||||||
// access it at all.
|
// access it at all.
|
||||||
Info.setAllowsMemory();
|
Info.setAllowsMemory();
|
||||||
|
Name++; // Skip over 'e'.
|
||||||
break;
|
break;
|
||||||
case 'Q': // Memory operand that is an offset from a register (it is
|
case 'Q': // Memory operand that is an offset from a register (it is
|
||||||
// usually better to use `m' or `es' in asm statements)
|
// usually better to use `m' or `es' in asm statements)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче