1 /* { dg-do assemble } */
2 /* { dg-options "-O2 --save-temps -ftree-vectorize" } */
3 
4 #pragma GCC target "+nosve"
5 
6 /* Each function uses the correspoding 'CLASS' in
7    Marco CHECK (aarch64_simd_valid_immediate).  */
8 
9 void
bic_6(int * a)10 bic_6 (int *a)
11 {
12   for (int i = 0; i < 1024; i++)
13     a[i] &= ~(0xab);
14 }
15 
16 void
bic_7(int * a)17 bic_7 (int *a)
18 {
19   for (int i = 0; i < 1024; i++)
20     a[i] &= ~(0xcd00);
21 }
22 
23 void
bic_8(int * a)24 bic_8 (int *a)
25 {
26   for (int i = 0; i < 1024; i++)
27     a[i] &= ~(0xef0000);
28 }
29 
30 void
bic_9(int * a)31 bic_9 (int *a)
32 {
33   for (int i = 0; i < 1024; i++)
34     a[i] &= ~(0x12000000);
35 }
36 
37 void
bic_10(short * a)38 bic_10 (short *a)
39 {
40   for (int i = 0; i < 1024; i++)
41     a[i] &= ~(0x34);
42 }
43 
44 
45 void
bic_11(short * a)46 bic_11 (short *a)
47 {
48   for (int i = 0; i < 1024; i++)
49     a[i] &= ~(0x5600);
50 }
51 
52 
53 /* { dg-final { scan-assembler "bic\\tv\[0-9\]+.4s, #171" } } */
54 /* { dg-final { scan-assembler "bic\\tv\[0-9\]+.4s, #205, lsl #8" } } */
55 /* { dg-final { scan-assembler "bic\\tv\[0-9\]+.4s, #239, lsl #16" } } */
56 /* { dg-final { scan-assembler "bic\\tv\[0-9\]+.4s, #18, lsl #24" } } */
57 /* { dg-final { scan-assembler "bic\\tv\[0-9\]+.8h, #52" } } */
58 /* { dg-final { scan-assembler "bic\\tv\[0-9\]+.8h, #86, lsl #8" } } */
59