blob: 40fbb934bf99ee37462ccf36a5fa7be74e59c425 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-mcpu=nps400 -mcmem -O2" } */
struct strange_bool
{
unsigned int bool_bit :1;
unsigned int other_bits :31;
};
struct strange_bool a_strange_bool __attribute__((section(".cmem")));
extern void bar();
void foo() {
if (a_strange_bool.bool_bit)
bar();
}
/* { dg-final { scan-assembler "xldb\\s+r\[0-9\]+,\\\[@a_strange_bool\\\]" } } */
/* { dg-final { scan-assembler "btst_s\\s+r\[0-9\]+,7" { target arceb-*-* } } } */