Re: Zero extractions and zero extends

2010-02-11 Thread Adam Nemet
Jean Christophe Beyler jean.christophe.bey...@gmail.com writes: typedef struct sTestUnsignedChar { uint64_t a:1; }STestUnsignedChar; uint64_t getU (STestUnsignedChar a) { return a.a; } I get this in the DCE pass : (insn 6 3 7 2 bitfield2.c:8 (set (subreg:DI (reg:QI 75) 0)

Zero extractions and zero extends

2010-02-09 Thread Jean Christophe Beyler
Dear all, If I consider this code typedef struct sTestUnsignedChar { uint64_t a:1; }STestUnsignedChar; uint64_t getU (STestUnsignedChar a) { return a.a; } I get this in the DCE pass : (insn 6 3 7 2 bitfield2.c:8 (set (subreg:DI (reg:QI 75) 0) (zero_extract:DI (reg/v:DI 73 [ a