c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / darwin-ehreturn-1.c
blobf4804bb5342dc619076c0bce1f1c6f7c3408c9a7
1 /* { dg-do compile { target powerpc*-*-darwin* } } */
2 /* { dg-require-effective-target ilp32 } */
3 /* { dg-options "-mdejagnu-cpu=G3 -funwind-tables" } */
4 /* { dg-final { scan-assembler "bl save_world" } } */
5 /* { dg-final { scan-assembler ".byte\t0x6b" } } */
7 /* Verify that on Darwin, even with -mcpu=G3, __builtin_eh_return
8 saves Altivec registers using save_world, and reports their
9 location in its EH information. */
11 long offset;
12 void *handler;
14 extern void setup_offset(void);
16 void foo(void)
18 __builtin_unwind_init ();
19 setup_offset();
20 __builtin_eh_return (offset, handler);