[Darwin, X86, testsuite] Update tests for common section use.
authorIain Sandoe <iain@sandoe.co.uk>
Thu, 28 Nov 2019 19:41:55 +0000 (19:41 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Thu, 28 Nov 2019 19:41:55 +0000 (19:41 +0000)
The switch to default of no-common means that we no longer
indirect the accesses to 'xxx' in this test.  Adjust the scan-
assembler tests to reflect this.

gcc/testsuite/ChangeLog:

2019-11-28  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/i386/pr32219-2.c: Adjust scan-assembler entries
for revised common default.

From-SVN: r278818

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr32219-2.c

index 65e7ffc3c23d25ef0e9cfecd6691000164ddd613..ac1a4be9888cfec275d00ee32e5bcacab4ec6629 100644 (file)
@@ -1,3 +1,8 @@
+2019-11-28  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * gcc.target/i386/pr32219-2.c: Adjust scan-assembler entries
+       for revised common default.
+
 2019-11-28  Jerry DeLisle  <jvdelisle@gcc.ngu.org>
 
        PR fortran/90374
index b6212f7dd4c93632f265fa4b881080df9734b3e1..a9c18ba1995a78c3194dc955ffe1942c0bff10c0 100644 (file)
@@ -12,13 +12,12 @@ foo ()
 }
 
 /* { dg-final { scan-assembler-not "movl\[ \t\]xxx\\(%rip\\), %" { target { ! ia32 } } } } */
-/* For Darwin m64 we are always PIC, but common symbols are indirected, which happens to
-   match the general "ELF" case.  */
-/* { dg-final { scan-assembler "xxx@GOTPCREL" { target { ! ia32 } } } } */
+/* For Darwin m64 PIC we make a direct access to this symbol.  */
+/* { dg-final { scan-assembler "xxx@GOTPCREL" { target { { ! ia32 } && { ! *-*-darwin* } } } } } */
 
 /* { dg-final { scan-assembler-not "movl\[ \t\]xxx@GOTOFF\\(%\[^,\]*\\), %" { target { ia32 && { ! *-*-darwin* } } } } } */
 /* { dg-final { scan-assembler "movl\[ \t\]xxx@GOT\\(%\[^,\]*\\), %" { target { ia32 && { ! *-*-darwin* } } } } } */
 
-/* Darwin m32 defaults to PIC but common symbols need to be indirected.  */
-/* { dg-final { scan-assembler {movl[ \t][Ll]_xxx\$non_lazy_ptr-L1\$pb\(%eax\),[ \t]%eax} { target { ia32 && *-*-darwin* } } } } */
+/* Darwin m32 PIC requires the picbase adjustment.  */
+/* { dg-final { scan-assembler {movl[ \t]_xxx-L1\$pb\(%eax\),[ \t]%eax} { target { ia32 && *-*-darwin* } } } } */