[Darwin,PPC,testsuite,committed] Fix pr89313.c fail.
diff mbox series

Message ID 7E8429A5-2837-48D1-8670-B27E0C1EB8FC@sandoe.co.uk
State New
Headers show
Series
  • [Darwin,PPC,testsuite,committed] Fix pr89313.c fail.
Related show

Commit Message

Iain Sandoe Sept. 19, 2019, 7:49 p.m. UTC
Hi,

Darwin defines '__POWERPC__' rather than '__powerpc__' so check for
the upper case version too in order to select the correct register
name.

tested on powerpc-darwin9, , applied to mainline.
thanks
Iain

gcc/testsuite:

2019-09-19  Iain Sandoe  <iain@sandoe.co.uk>

	* gcc.dg/pr89313.c: Test for __POWERPC__ in addition to
	__powerpc__ in register name selection.

Patch
diff mbox series

diff --git a/gcc/testsuite/gcc.dg/pr89313.c b/gcc/testsuite/gcc.dg/pr89313.c
index 6688323fbd..76cb0910b9 100644
--- a/gcc/testsuite/gcc.dg/pr89313.c
+++ b/gcc/testsuite/gcc.dg/pr89313.c
@@ -8,7 +8,7 @@ 
 # define REG "r0"
 #elif defined (__i386__)
 # define REG "%eax"
-#elif defined (__powerpc__)
+#elif defined (__powerpc__) || defined (__POWERPC__)
 # define REG "r3"
 #elif defined (__s390__)
 # define REG "0"