Fortran: fix dependency checks for inquiry refs [PR115039]
[official-gcc.git] / gcc / testsuite / gcc.target / nios2 / bmx.c
blob9daa60635726455c52877dd2db5c5967deadd6ac
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -march=r2 -mbmx" } */
4 /* Test generation of Nios II R2 BMX instructions. */
6 struct s {
7 unsigned int pad1 : 3;
8 unsigned int bitfield : 20;
9 unsigned int intfield;
12 void f (struct s *a, struct s *b)
14 a->bitfield = b->bitfield;
17 void g (struct s *a, struct s *b)
19 a->bitfield = b->intfield;
22 void h (struct s *a, struct s *b)
24 a->intfield = b->bitfield;
27 /* { dg-final { scan-assembler "\tmerge\t.*, 22, 3" } } */
28 /* { dg-final { scan-assembler "\tinsert\t.*, 22, 3" } } */
29 /* { dg-final { scan-assembler "\textract\t.*, 22, 3" } } */