Patchwork [testsuite,i386] Fix for PR50185

login
register
mail settings
Submitter Jakub Jelinek
Date Aug. 26, 2011, 2:27 p.m.
Message ID <20110826142743.GU2687@tyan-ft48-01.lab.bos.redhat.com>
Download mbox | patch
Permalink /patch/111786/
State New
Headers show

Comments

Jakub Jelinek - Aug. 26, 2011, 2:27 p.m.
Hi!

On Fri, Aug 26, 2011 at 06:04:20AM -0700, H.J. Lu wrote:
> Please check ALL AVX2 tests to see if they have similar problems.

Checking all current i386 tests revealed another problematic testcase:
grep scan-assembler' "[a-z0-9]*"' testsuite/gcc.target/i386/*.c | grep '\(.*\).*"\1"'

(minmax-*.c only match the path, which will show up only with -g and
I bet many other scan-assembler tests would fail with
RUNTESTFLAGS=--target_board=unix/-g
(matching various stuff in the debug info)).

2011-08-26  Jakub Jelinek  <jakub@redhat.com>

	* gcc.target/i386/cmpxchg16b-1.c: Match also space after the
	instruction.



	Jakub

Patch

--- gcc/testsuite/gcc.target/i386/cmpxchg16b-1.c.jj	2011-07-11 10:39:29.000000000 +0200
+++ gcc/testsuite/gcc.target/i386/cmpxchg16b-1.c	2011-08-26 16:20:46.000000000 +0200
@@ -10,4 +10,4 @@  void test(TItype x_128)
   m_128 = __sync_val_compare_and_swap (&m_128, x_128, m_128);
 }
 
-/* { dg-final { scan-assembler "cmpxchg16b" } } */
+/* { dg-final { scan-assembler "cmpxchg16b\[ \\t]" } } */