Adjust 'libgomp.c/max_vf-*.c'
[official-gcc.git] / gcc / testsuite / gcc.target / arc / cmem-bit-1.c
blobd3471a2e621dcf092785edb3ee9803527328bdb0
1 /* { dg-do compile } */
2 /* { dg-options "-mcpu=nps400 -mcmem -O2" } */
4 struct strange_bool
6 unsigned char bool_bit :1;
7 unsigned char other_bits :7;
8 };
10 struct strange_bool a_strange_bool __attribute__((section(".cmem")));
12 extern void bar();
14 void foo() {
15 if (a_strange_bool.bool_bit)
16 bar();
19 /* { dg-final { scan-assembler "xldb\\s+r\[0-9\]+,\\\[@a_strange_bool\\\]" } } */
20 /* { dg-final { scan-assembler "btst_s\\s+r\[0-9\]+,7" { target arceb-*-* } } } */