Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/pfalse-shift_right_imm.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 MXZ(F, TY) \
8 TY F##_f (TY op1) \
9 { \
10 return sv##F (svpfalse_b (), op1, 2); \
11 }
12
13 #define PRED_MXZn(F, TYPE, TY) \
14 MXZ (F##_n_##TY##_m, TYPE) \
15 MXZ (F##_n_##TY##_x, TYPE) \
16 MXZ (F##_n_##TY##_z, TYPE)
17
18 #define ALL_SIGNED_IMM(F, P) \
19 PRED_##P (F, svint8_t, s8) \
20 PRED_##P (F, svint16_t, s16) \
21 PRED_##P (F, svint32_t, s32) \
22 PRED_##P (F, svint64_t, s64)
23
24 ALL_SIGNED_IMM (asrd, MXZn)
25
26 /* { dg-final { scan-assembler-times {\t.cfi_startproc\n\tret\n} 4 } } */
27 /* { dg-final { scan-assembler-times {\t.cfi_startproc\n\tmovi?\t[vdz]([0-9]+)\.?(?:[0-9]*[bhsd])?, #?0\n\tret\n} 8 } } */
28 /* { dg-final { scan-assembler-times {\t.cfi_startproc\n} 12 } } */