Re: [PATCH] Simplify & expand c_readstr

2023-09-28 Thread Richard Biener
On Thu, Sep 28, 2023 at 3:37 PM Richard Sandiford wrote: > > c_readstr only operated on integer modes. It worked by reading > the source string into an array of HOST_WIDE_INTs, converting > that array into a wide_int, and from there to an rtx. > > It's simpler to do this by building a target memo

[PATCH] Simplify & expand c_readstr

2023-09-28 Thread Richard Sandiford
c_readstr only operated on integer modes. It worked by reading the source string into an array of HOST_WIDE_INTs, converting that array into a wide_int, and from there to an rtx. It's simpler to do this by building a target memory image and using native_decode_rtx to convert that memory image int