diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2019-06-23 19:48:55 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2019-06-23 19:48:55 +0000 |
commit | fb007b0dd34e5e93b9efbbcd79e3f2763816ab8e (patch) | |
tree | c91b347895a0806b4cc38cba694a054dde72b910 /gcc | |
parent | deb9c4ebeabe4062d658cee2a76961f7df1710e3 (diff) | |
download | gcc-fb007b0dd34e5e93b9efbbcd79e3f2763816ab8e.zip gcc-fb007b0dd34e5e93b9efbbcd79e3f2763816ab8e.tar.gz gcc-fb007b0dd34e5e93b9efbbcd79e3f2763816ab8e.tar.bz2 |
[Darwin, PPC, testsuite] Fix builtins-1 testcase for Darwin.
This needs to account for Darwin's __USER_LABEL_PREFIX__.
2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
* gcc.target/powerpc/builtins-1.c: Account for Darwin's use of
__USER_LABEL_PREFIX__.
From-SVN: r272604
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/builtins-1.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5cdf35d..7074bf8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2019-06-23 Iain Sandoe <iain@sandoe.co.uk> + * gcc.target/powerpc/builtins-1.c: Account for Darwin's use of + __USER_LABEL_PREFIX__. + +2019-06-23 Iain Sandoe <iain@sandoe.co.uk> + * gcc.target/powerpc/pr71785.c: For Darwin, make test non-PIC, expect the out-of-line GPR restore, and test specifically for absence of branches to local labels. diff --git a/gcc/testsuite/gcc.target/powerpc/builtins-1.c b/gcc/testsuite/gcc.target/powerpc/builtins-1.c index 8263e28..73f8fb5 100644 --- a/gcc/testsuite/gcc.target/powerpc/builtins-1.c +++ b/gcc/testsuite/gcc.target/powerpc/builtins-1.c @@ -330,10 +330,10 @@ int main () /* { dg-final { scan-assembler-times "divd" 8 { target lp64 } } } */ /* { dg-final { scan-assembler-times "divdu" 2 { target lp64 } } } */ /* { dg-final { scan-assembler-times "mulld" 4 { target lp64 } } } */ -/* check for both .__divdi3 (AIX) and __divdi3 (Linux) */ -/* { dg-final { scan-assembler-times {\mbl \.?__divdi3\M} 2 { target { ilp32 } } } } */ -/* check for both .__udivdi3 (AIX) and __udivdi3 (Linux) */ -/* { dg-final { scan-assembler-times {\mbl \.?__udivdi3\M} 2 { target { ilp32 } } } } */ +/* check for .__divdi3 (AIX), __divdi3 (Linux) and ___divdi3 (Darwin) */ +/* { dg-final { scan-assembler-times {\mbl \.?_?__divdi3\M} 2 { target { ilp32 } } } } */ +/* check for both .__udivdi3 (AIX), __udivdi3 (Linux) and ___udivdi3 (Darwin) */ +/* { dg-final { scan-assembler-times {\mbl \.?_?__udivdi3\M} 2 { target { ilp32 } } } } */ /* { dg-final { scan-assembler-times "mullw" 12 { target ilp32 } } } */ /* { dg-final { scan-assembler-times "mulhwu" 4 { target ilp32 } } } */ /* { dg-final { scan-assembler-times "xxmrgld" 0 } } */ |