From 1039b93746e15cfb48b3a6e863d3a005331e5d1e Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 13 Mar 2009 13:25:50 +0000 Subject: [PATCH] backport: re PR testsuite/39451 (Invalid x86 constraint in gcc.dg/asm-b.c) 2009-03-13 H.J. Lu Backport from mainline: 2009-03-13 H.J. Lu 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 | 9 +++++++++ gcc/testsuite/gcc.dg/asm-b.c | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index aa7e598386dd..8f3ee1cc729a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2009-03-13 H.J. Lu + + Backport from mainline: + 2009-03-13 H.J. Lu + + PR testsuite/39451 + * gcc.dg/asm-b.c: Use "Q" constraint on %b1/%h1 and "R" + constraint on (%2). + 2009-03-11 Ulrich Weigand * g++.old-deja/g++.jason/thunk2.C: Skip on SPU. diff --git a/gcc/testsuite/gcc.dg/asm-b.c b/gcc/testsuite/gcc.dg/asm-b.c index ec9683925c46..beb35f28d8a2 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; } -- 2.47.2