Re: [PATCH] Rewrite pic.md to improve medany and pic code size.

2018-08-29 Thread Palmer Dabbelt
On Wed, 29 Aug 2018 09:52:00 PDT (-0700), Jim Wilson wrote: On Wed, Aug 29, 2018 at 9:22 AM, Palmer Dabbelt wrote: Thanks Jim -- I'm afraid at least part of this was my mess, as I had to go add in the ZERO_EXTEND_LOAD hackery to work around some bug in this file that I couldn't figure out how t

Re: [PATCH] Rewrite pic.md to improve medany and pic code size.

2018-08-29 Thread Jim Wilson
On Wed, Aug 29, 2018 at 9:22 AM, Palmer Dabbelt wrote: > Thanks Jim -- I'm afraid at least part of this was my mess, as I had to go > add in the ZERO_EXTEND_LOAD hackery to work around some bug in this file > that I couldn't figure out how to fix in a better way. ZERO_EXTEND_LOAD is exactly the s

Re: [PATCH] Rewrite pic.md to improve medany and pic code size.

2018-08-29 Thread Palmer Dabbelt
On Tue, 28 Aug 2018 19:21:23 PDT (-0700), Jim Wilson wrote: The pic.md file has patterns used only for the medany code model and for pic code. They match an unsplit 2-instruction address load pattern followed by a load or store instruction, and emit an assembler macro that expands to two instruc

[PATCH] Rewrite pic.md to improve medany and pic code size.

2018-08-28 Thread Jim Wilson
The pic.md file has patterns used only for the medany code model and for pic code. They match an unsplit 2-instruction address load pattern followed by a load or store instruction, and emit an assembler macro that expands to two instructions. This replaces 3 instructions with 2. Unfortunately, t