The assembly functions declared in `asm_1.c` and `asm_3` were not marked
global, so they could not be found by the linker, and would cause the
`asm_2.c` and `asm_4.c` test to fail. Fix by marking the functions with
`.globl`.
gcc/testsuite/ChangeLog:
* gcc.target/aarch64/sve/pcs/asm_1.c
* gcc.target/aarch64/sve/pcs/asm_3.c: Fix tests.
#define ASM_FUNCTION(NAME, RET_TYPE, ARG_TYPE, INSN) \
extern RET_TYPE NAME (svbool_t, ARG_TYPE); \
asm( \
-" .type " #NAME ", %function\n" \
-#NAME ":\n" \
+" .type %cc0, %%function\n" \
+" .globl %cc0\n" \
+"%cc0:\n" \
" " INSN "\n" \
" ret\n" \
-" .size " #NAME ", .-" #NAME "\n" \
+" .size %cc0, .-%cc0\n" \
+: :":"(NAME ) \
)
ASM_FUNCTION (u8_callee, uint64_t, svuint8_t,
#define ASM_FUNCTION(NAME, RET_TYPE, ARG_TYPE, INSN) \
extern RET_TYPE NAME (svbool_t, ARG_TYPE); \
asm( \
-" .type " #NAME ", %function\n" \
-#NAME ":\n" \
+" .type %cc0, %%function\n" \
+" .globl %cc0\n" \
+"%cc0:\n" \
" " INSN "\n" \
" ret\n" \
-" .size " #NAME ", .-" #NAME "\n" \
+" .size %cc0, .-%cc0\n" \
+: :":"(NAME ) \
)
ASM_FUNCTION (u8_callee, svuint8_t, svuint8x2_t,