diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2019-11-28 19:41:55 +0000 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2019-11-28 19:41:55 +0000 |
commit | 25e2ff173d00b2f8c2de2ebe27b517bad8f1e498 (patch) | |
tree | 2c5889eafbd694d11ad776cbc373d9cc73437986 /gcc/testsuite | |
parent | 3f42a4a046154cccf526f361d67edd2f79cf9e84 (diff) |
[Darwin, X86, testsuite] Update tests for common section use.
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.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@278818 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr32219-2.c | 9 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 65e7ffc3c23..ac1a4be9888 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.target/i386/pr32219-2.c b/gcc/testsuite/gcc.target/i386/pr32219-2.c index b6212f7dd4c..a9c18ba1995 100644 --- a/gcc/testsuite/gcc.target/i386/pr32219-2.c +++ b/gcc/testsuite/gcc.target/i386/pr32219-2.c @@ -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* } } } } */ |