This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: PR testsuite/39451: Invalid x86 constraint in gcc.dg/asm-b.c


H.J. Lu wrote:
On Thu, Mar 12, 2009 at 09:01:15PM -0700, H.J. Lu wrote:
The "r" constraint means any integer registers. But %b1/%h1 requires
the "Q" constraint.  OK for trunk and 4.3?


"movb %h1,(%2)" also requires the "R" constraint since you can't encode "mov %Xh, (%rXX)". OK for trunk and 4.3?

Thanks.


H.J. --- 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>

PR testsuite/39451
* gcc.dg/asm-b.c: Use "Q" constraint on %b1/%h1 and "R"
constraint on (%2).

Please also change ";" between asm instructions to "\n\t".


The patch is OK for mainline and branch with this change.

Thanks,
Uros.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]