re PR testsuite/39451 (Invalid x86 constraint in gcc.dg/asm-b.c)

2009-03-13  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).

From-SVN: r144834
This commit is contained in:
H.J. Lu 2009-03-13 13:24:14 +00:00 committed by H.J. Lu
parent 8f6678383c
commit ba4905b4c3
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2009-03-13 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).
2009-03-12 David Ayers <ayers@fsfe.org>
PR libobjc/27466

View file

@ -24,8 +24,8 @@ bar (void)
#if defined (__powerpc__) || defined (__PPC__) || defined (__ppc__) || defined (_POWER) || defined (__ppc64__)
__asm __volatile ("sthbrx %1,0,%2" : "=m" (*z) : "r" (y), "r" (z));
#elif defined __i386__ || defined __x86_64__
__asm __volatile ("movb %b1,1(%2); movb %h1,(%2)" : "=m" (*z) : "r" (y), "r"
(z));
__asm __volatile ("movb %b1,1(%2)\n\tmovb %h1,(%2)"
: "=m" (*z) : "Q" (y), "R" (z));
#endif
return (x & 1) == 0;
}