This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug testsuite/79026] New: The tests changed by revision r244006 now fail on darwin


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79026

            Bug ID: 79026
           Summary: The tests changed by revision r244006 now fail on
                    darwin
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr
                CC: iains at gcc dot gnu.org, uros at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-apple-darwin16
            Target: x86_64-apple-darwin16
             Build: x86_64-apple-darwin16

After revision r244006 I see the following failures on darwin

FAIL: gcc.target/i386/pr78904-2.c scan-assembler [ \\t]addb[ \\t]+t[^\\n\\r]*,
%.h
FAIL: gcc.target/i386/pr78904-2.c scan-assembler [ \\t]andb[ \\t]+t[^\\n\\r]*,
%.h
FAIL: gcc.target/i386/pr78904-2.c scan-assembler [ \\t]orb[ \\t]+t[^\\n\\r]*,
%.h
FAIL: gcc.target/i386/pr78904-2.c scan-assembler [ \\t]xorb[ \\t]+t[^\\n\\r]*,
%.h
FAIL: gcc.target/i386/pr78904-4.c scan-assembler [ \\t]movb[\\t ]+%.h, t
FAIL: gcc.target/i386/pr78904-6.c scan-assembler [ \\t]movb[\\t ]*%.h, t
FAIL: gcc.target/i386/pr78967-2.c scan-assembler [ \\t]movb[ \\t]+t[^\\n\\r]*,
%.h

On darwin I see

        andb    %cl, %ah
        orb     %cl, %ah
        xorb    %cl, %ah
        addb    %cl, %ah

and

        movb    %ch, (%rax,%rsi)

The failures are silenced by the following patch

--- ../_clean/gcc/testsuite/gcc.target/i386/pr78904-2.c 2017-01-02
23:47:53.000000000 +0100
+++ gcc/testsuite/gcc.target/i386/pr78904-2.c   2017-01-08 15:38:34.000000000
+0100
@@ -18,7 +18,7 @@ struct S1 test_and (struct S1 a)
   return a;
 }

-/* { dg-final { scan-assembler "\[ \t\]andb\[ \t\]+t\[^\n\r]*, %.h" } } */
+/* { dg-final { scan-assembler "\[ \t\]andb\[ \t\]+t?\[^\n\r]*, %.h" } } */

 struct S1 test_or (struct S1 a)
 {
@@ -27,7 +27,7 @@ struct S1 test_or (struct S1 a)
   return a;
 }

-/* { dg-final { scan-assembler "\[ \t\]orb\[ \t\]+t\[^\n\r]*, %.h" } } */
+/* { dg-final { scan-assembler "\[ \t\]orb\[ \t\]+t?\[^\n\r]*, %.h" } } */

 struct S1 test_xor (struct S1 a)
 {
@@ -36,7 +36,7 @@ struct S1 test_xor (struct S1 a)
   return a;
 }

-/* { dg-final { scan-assembler "\[ \t\]xorb\[ \t\]+t\[^\n\r]*, %.h" } } */
+/* { dg-final { scan-assembler "\[ \t\]xorb\[ \t\]+t?\[^\n\r]*, %.h" } } */

 struct S1 test_add (struct S1 a)
 {
@@ -45,4 +45,4 @@ struct S1 test_add (struct S1 a)
   return a;
 }

-/* { dg-final { scan-assembler "\[ \t\]addb\[ \t\]+t\[^\n\r]*, %.h" } } */
+/* { dg-final { scan-assembler "\[ \t\]addb\[ \t\]+t?\[^\n\r]*, %.h" } } */
--- ../_clean/gcc/testsuite/gcc.target/i386/pr78904-4.c 2017-01-02
23:47:53.000000000 +0100
+++ gcc/testsuite/gcc.target/i386/pr78904-4.c   2017-01-08 15:43:24.000000000
+0100
@@ -18,4 +18,4 @@ void foo (struct S1 a, size_t i)
   t[i] = a.val;
 }

-/* { dg-final { scan-assembler "\[ \t\]movb\[\t \]+%.h, t" } } */
+/* { dg-final { scan-assembler "\[ \t\]movb\[\t \]+%.h, t?" } } */
--- ../_clean/gcc/testsuite/gcc.target/i386/pr78904-6.c 2017-01-02
23:47:53.000000000 +0100
+++ gcc/testsuite/gcc.target/i386/pr78904-6.c   2017-01-08 15:44:30.000000000
+0100
@@ -18,4 +18,4 @@ void foo (struct S1 a, size_t i)
   t[i] = a.val;
 }

-/* { dg-final { scan-assembler "\[ \t\]movb\[\t \]*%.h, t" } } */
+/* { dg-final { scan-assembler "\[ \t\]movb\[\t \]*%.h, t?" } } */
--- ../_clean/gcc/testsuite/gcc.target/i386/pr78967-2.c 2017-01-02
23:47:53.000000000 +0100
+++ gcc/testsuite/gcc.target/i386/pr78967-2.c   2017-01-08 15:52:19.000000000
+0100
@@ -21,4 +21,4 @@ struct S1 foo (struct S1 a, size_t i)
   return a;
 }

-/* { dg-final { scan-assembler "\[ \t\]movb\[ \t\]+t\[^\n\r]*, %.h" } } */
+/* { dg-final { scan-assembler "\[ \t\]movb\[ \t\]+t?\[^\n\r]*, %.h" } } */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]