Re: Strange insn rtx is emitted in a custom backend

2015-06-02 Thread Lev Yudalevich
Thanks a lot, Jeff! I was missing some stuff in TARGET_LEGITIMATE_CONSTANT_P. Lev. On Mon, Jun 1, 2015 at 11:35 PM, Jeff Law wrote: > On 06/01/2015 12:51 PM, Lev Yudalevich wrote: >> >> While working on a custom backend for quite a standard RISC-like >> architecture, I defined 'high'/'lo_sum' pa

Re: Strange insn rtx is emitted in a custom backend

2015-06-01 Thread Jeff Law
On 06/01/2015 12:51 PM, Lev Yudalevich wrote: While working on a custom backend for quite a standard RISC-like architecture, I defined 'high'/'lo_sum' patterns as follows: (define_insn "mov_high" [(set (match_operand:SI 0 "register_operand" "=r") (high:SI (match_operand:SI 1 "immed

Strange insn rtx is emitted in a custom backend

2015-06-01 Thread Lev Yudalevich
While working on a custom backend for quite a standard RISC-like architecture, I defined 'high'/'lo_sum' patterns as follows: (define_insn "mov_high" [(set (match_operand:SI 0 "register_operand" "=r") (high:SI (match_operand:SI 1 "immediate_operand" "i")))] "" "mvup #high(%1), %0"