1 /* Check interwork between static functions for thumb2. */
3 /* { dg-do compile } */
4 /* { dg-require-effective-target arm_arch_v7a_ok } */
5 /* { dg-options "-O0 -march=armv7-a" } */
13 typedef struct _NSPoint NSPoint
;
16 __attribute__ ((target("arm")))
17 NSMakePoint (float x
, float y
)
26 __attribute__ ((target("thumb")))
27 RelativePoint (NSPoint point
, NSPoint refPoint
)
29 return NSMakePoint (refPoint
.x
+ point
.x
, refPoint
.y
+ point
.y
);
33 __attribute__ ((target("arm")))
37 return RelativePoint (NSMakePoint (0, pointA
), refPoint
);
40 /* { dg-final { scan-assembler-times "blx" 2 } } */