diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2009-03-13 13:24:14 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2009-03-13 06:24:14 -0700 |
commit | ba4905b4c3fe2412e522696cdcefc8d4befdfe4b (patch) | |
tree | e3d83765e08a20c9cc65544922732e1dcee358de /gcc | |
parent | 8f6678383c00182d95441e71c8ced4d0dbe02f41 (diff) | |
download | gcc-ba4905b4c3fe2412e522696cdcefc8d4befdfe4b.zip gcc-ba4905b4c3fe2412e522696cdcefc8d4befdfe4b.tar.gz gcc-ba4905b4c3fe2412e522696cdcefc8d4befdfe4b.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/asm-b.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8198504..f51f991 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.dg/asm-b.c b/gcc/testsuite/gcc.dg/asm-b.c index ec96839..beb35f2 100644 --- a/gcc/testsuite/gcc.dg/asm-b.c +++ b/gcc/testsuite/gcc.dg/asm-b.c @@ -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; } |