view gcc/testsuite/gcc.c-torture/compile/pr40351.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR tree-optimizations/40351 */

struct IO_APIC_route_entry {
    unsigned int vector : 8;
    unsigned int delivery_mode : 1;
    unsigned int mask : 1;
    unsigned int __reserved_2 : 15;
    unsigned int __reserved_3 : 8;
} __attribute__ ((packed));
union entry_union {
    struct {
        unsigned int w1, w2;
    };
    struct IO_APIC_route_entry entry;
};
unsigned int io_apic_read(void);
struct IO_APIC_route_entry ioapic_read_entry(void)
{
  union entry_union eu;
  eu.w1 = io_apic_read();
  return eu.entry;
}