scan-assembler can be target-dependent if that would (as I read the
above) help.

Well, whadayaknow...

In that case we can have an x86 variant for Darwin, and one for everything else x86.

OK?
testsuite/
        * c-c++-common/cxxbitfields-3.c: Adjust regexp.

Index: testsuite/c-c++-common/cxxbitfields-3.c
===================================================================
--- testsuite/c-c++-common/cxxbitfields-3.c     (revision 182028)
+++ testsuite/c-c++-common/cxxbitfields-3.c     (working copy)
@@ -18,4 +18,5 @@ void setit()
   var.j = 5;
 }
 
-/* { dg-final { scan-assembler "movl.*, var" } } */
+/* { dg-final { scan-assembler "movl.*, \\(%" { target *-*-darwin } } } */
+/* { dg-final { scan-assembler "movl.*, var" { target { ! *-*-darwin } } } } */

Reply via email to