1 /* PR tree-optimizations/40351 */
2 
3 struct IO_APIC_route_entry {
4     unsigned int vector : 8;
5     unsigned int delivery_mode : 1;
6     unsigned int mask : 1;
7     unsigned int __reserved_2 : 15;
8     unsigned int __reserved_3 : 8;
9 } __attribute__ ((packed));
10 union entry_union {
11     struct {
12         unsigned int w1, w2;
13     };
14     struct IO_APIC_route_entry entry;
15 };
16 unsigned int io_apic_read(void);
ioapic_read_entry(void)17 struct IO_APIC_route_entry ioapic_read_entry(void)
18 {
19   union entry_union eu;
20   eu.w1 = io_apic_read();
21   return eu.entry;
22 }
23