[cfe-commits] r106812 - /cfe/trunk/lib/Basic/Targets.cpp
John Thompson
John.Thompson.JTSoftware at gmail.com
Thu Jun 24 17:02:06 PDT 2010
Author: jtsoftware
Date: Thu Jun 24 19:02:05 2010
New Revision: 106812
URL: http://llvm.org/viewvc/llvm-project?rev=106812&view=rev
Log:
Fixed another double-char in PPC-specific asm constraints.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=106812&r1=106811&r2=106812&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Thu Jun 24 19:02:05 2010
@@ -485,12 +485,16 @@
// asm ("st %1,%0" : "=m" (mem) : "r" (val));
// is not. Use es rather than m if you don't want the base
// 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
// `m', this constraint can be used in asm statements that
// might access the operand several times, or that might not
- // access it at all.
+ // access it at all.
Info.setAllowsMemory();
+ Name++; // Skip over 'e'.
break;
case 'Q': // Memory operand that is an offset from a register (it is
// usually better to use `m' or `es' in asm statements)
More information about the cfe-commits
mailing list