]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR testsuite/39451 (Invalid x86 constraint in gcc.dg/asm-b.c)
authorH.J. Lu <hongjiu.lu@intel.com>
Fri, 13 Mar 2009 13:25:50 +0000 (13:25 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 13 Mar 2009 13:25:50 +0000 (06:25 -0700)
2009-03-13  H.J. Lu  <hongjiu.lu@intel.com>

Backport from mainline:
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: r144835

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asm-b.c

index aa7e598386dd711e350cfec40e32878a2b8f8482..8f3ee1cc729a10f9f61d588c7650edec08c34f46 100644 (file)
@@ -1,3 +1,12 @@
+2009-03-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       Backport from mainline:
+       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-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
 
        * g++.old-deja/g++.jason/thunk2.C: Skip on SPU.
index ec9683925c469f4750b536faf55f9d8a19c0c29c..beb35f28d8a28a027b408f20e30125e31911db6a 100644 (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;
 }