Re: [PTX] simplify movs

2017-05-22 Thread Nathan Sidwell
On 05/21/2017 03:35 AM, Tom de Vries wrote: On 12/02/2015 04:09 PM, Nathan Sidwell wrote: +/* Output a pattern for a move instruction. */ + +const char * +nvptx_output_mov_insn (rtx dst, rtx src) +{ src_inner uses dst_mode rather than GET_MODE (src). I'm trying to understand if that is inten

Re: [PTX] simplify movs

2017-05-21 Thread Tom de Vries
On 12/02/2015 04:09 PM, Nathan Sidwell wrote: +/* Output a pattern for a move instruction. */ + +const char * +nvptx_output_mov_insn (rtx dst, rtx src) +{ + machine_mode dst_mode = GET_MODE (dst); + machine_mode dst_inner = (GET_CODE (dst) == SUBREG + ? GET_MODE (XEXP

Re: [PTX] simplify movs

2015-12-02 Thread Bernd Schmidt
On 12/02/2015 04:09 PM, Nathan Sidwell wrote: The PTX md file goes to a lot of effort handling SC and DC movs, including for unspecs to mov low and high parts around. However, these code paths are not exercised in any gcc test or the build of newlib. The generic handling of these movs deals with

[PTX] simplify movs

2015-12-02 Thread Nathan Sidwell
The PTX md file goes to a lot of effort handling SC and DC movs, including for unspecs to mov low and high parts around. However, these code paths are not exercised in any gcc test or the build of newlib. The generic handling of these movs deals with type punning, (using the stack frame, if ne