aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/darwin-longlong.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/darwin-longlong.c')
-rw-r--r--gcc/testsuite/gcc.dg/darwin-longlong.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/darwin-longlong.c b/gcc/testsuite/gcc.dg/darwin-longlong.c
index ef925d6..9a1dcd2 100644
--- a/gcc/testsuite/gcc.dg/darwin-longlong.c
+++ b/gcc/testsuite/gcc.dg/darwin-longlong.c
@@ -25,7 +25,11 @@ int main()
/* Exit on systems without 64bit instructions. */
signal (SIGILL, sig_ill_handler);
+#ifdef __MACH__
asm volatile ("extsw r0,r0");
+#else
+ asm volatile ("extsw 0,0");
+#endif
signal (SIGILL, SIG_DFL);
if (msw(1) != 0)