Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/pfalse-load_gather_vs.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target elf } */
3 /* { dg-options "-O2 -funwind-tables" } */
4
5 #include <arm_sve.h>
6
7 #define T1(F, RTY, TY) \
8 RTY F##_f (TY bases) \
9 { \
10 return sv##F (svpfalse_b (), bases); \
11 }
12
13 #define T2(F, RTY, TY) \
14 RTY F##_f (TY bases, int64_t value) \
15 { \
16 return sv##F (svpfalse_b (), bases, value); \
17 }
18
19 #define T4(F, TY, TEST, B) \
20 TEST (F##_f##B, svfloat##B##_t, TY) \
21 TEST (F##_s##B, svint##B##_t, TY) \
22 TEST (F##_u##B, svuint##B##_t, TY) \
23
24 #define T3(F, B) \
25 T4 (F##_gather_u##B##base, svuint##B##_t, T1, B) \
26 T4 (F##_gather_u##B##base_offset, svuint##B##_t, T2, B) \
27 T4 (F##_gather_u##B##base_index, svuint##B##_t, T2, B)
28
29 #define SD_DATA(F) \
30 T3 (F, 32) \
31 T3 (F, 64)
32
33 SD_DATA (ld1)
34 SD_DATA (ldff1)
35
36 /* { dg-final { scan-assembler-times {\t.cfi_startproc\n\tmovi?\t[vdz]([0-9]+)\.?(?:[0-9]*[bhsd])?, #?0\n\tret\n} 36 } } */
37 /* { dg-final { scan-assembler-times {\t.cfi_startproc\n} 36 } } */