Invalid code emitted

2014-01-21 Thread Umesh Kalappa
Hi All , The following C code snippet unsigned char c ; int d ; int test () { d = c; return d; } below is the RTL without optimisation enabled (insn 6 5 0 (set (reg:QI 18 [ c.0 ]) (mem/c:QI (symbol_ref:HI (c) var_decl 0xb73a50b8 c) [0 c+0 S1 A8])) cnv.c:5 -1 (nil)) (insn 7

Re: Invalid code emitted

2014-01-21 Thread Ian Lance Taylor
On Tue, Jan 21, 2014 at 12:52 AM, Umesh Kalappa umesh.kalap...@gmail.com wrote: The following C code snippet unsigned char c ; int d ; int test () { d = c; return d; } below is the RTL without optimisation enabled (insn 6 5 0 (set (reg:QI 18 [ c.0 ]) (mem/c:QI

Re: Invalid code emitted

2014-01-21 Thread Umesh Kalappa
My bad Ian, Thanks for the input and the target was private and gcc 4.8.1 version used and your are on same page on reg pairing . Let me have a look on the port . Thanks Again ~Umesh On Tue, Jan 21, 2014 at 8:12 PM, Ian Lance Taylor i...@google.com wrote: On Tue, Jan 21, 2014 at 12:52 AM,