[ARM] Fix test armv8_2-fp16-move-1.c
[official-gcc.git] / gcc / testsuite / gcc.target / arm / naked-2.c
blob92e7db4447d703c54f66b2267514cdc7d01d5cfd
1 /* Verify that __attribute__((naked)) produces a naked function
2 that does not use bx to return. Naked functions could be used
3 to implement interrupt routines and must not return using bx. */
4 /* { dg-do compile } */
5 /* { dg-options "-O0" } */
6 /* Use more arguments than we have argument registers. */
7 int __attribute__((naked)) foo(int a, int b, int c, int d, int e, int f)
9 __asm__ volatile ("@ naked");
11 /* { dg-final { scan-assembler "\t@ naked" } } */
12 /* { dg-final { scan-assembler-not "\tbx\tlr" } } */