]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
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:24:14 +0000 (13:24 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 13 Mar 2009 13:24:14 +0000 (06:24 -0700)
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

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

index 8198504b8565f40cc956813aa9145f92d5fece0b..f51f9912ff5205d2166e5d164ace91560810aa54 100644 (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
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;
 }