On 11/19/20 8:35 PM, Maciej W. Rozycki wrote: > The MOVC3 machine instruction has `memmove' semantics[1]: > > "The operation of the instruction is such that overlap of the source and > destination strings does not affect the result." > > so use it to provide the `movmemhi' instruction as well. > > References: > > [1] DEC STD 032-0 "VAX Architecture Standard", Digital Equipment > Corporation, A-DS-EL-00032-00-0 Rev J, December 15, 1989, Section > 3.10 "Character-String Instructions", p. 3-162 > > gcc/ > * config/vax/vax.md (cpymemhi1): Rename insn to... > (movmemhi1): ... this. > (cpymemhi): Update accordingly. Remove constraints. > (movmemhi): New expander. > > gcc/testsuite/ > * gcc.target/vax/movmem.c: New test. OK jeff
- Re: [PATCH 14/31] VAX: Add tests for `sync_l... Jeff Law via Gcc-patches
- [PATCH 15/31] VAX: Provide the `ctz' operation Maciej W. Rozycki
- Re: [PATCH 15/31] VAX: Provide the `ctz' ope... Jeff Law via Gcc-patches
- [PATCH 16/31] VAX: Also provide QImode and HImode... Maciej W. Rozycki
- Re: [PATCH 16/31] VAX: Also provide QImode a... Jeff Law via Gcc-patches
- [PATCH 17/31] VAX: Actually produce QImode and HI... Maciej W. Rozycki
- Re: [PATCH 17/31] VAX: Actually produce QImo... Jeff Law via Gcc-patches
- [PATCH 18/31] VAX: Add a test for the `cpymemhi' ... Maciej W. Rozycki
- Re: [PATCH 18/31] VAX: Add a test for the `c... Jeff Law via Gcc-patches
- [PATCH 19/31] VAX: Add the `movmemhi' instruction Maciej W. Rozycki
- Re: [PATCH 19/31] VAX: Add the `movmemhi' in... Jeff Law via Gcc-patches
- [PATCH 20/31] VAX: Fix predicates and constraints... Maciej W. Rozycki
- Re: [PATCH 20/31] VAX: Fix predicates and co... Jeff Law via Gcc-patches
- [PATCH 21/31] VAX: Remove EXTV/EXTZV/INSV instruc... Maciej W. Rozycki
- Re: [PATCH 21/31] VAX: Remove EXTV/EXTZV/INS... Jeff Law via Gcc-patches
- [PATCH 22/31] VAX: Ensure PIC mode address is adj... Maciej W. Rozycki
- Re: [PATCH 22/31] VAX: Ensure PIC mode addre... Jeff Law via Gcc-patches
- [PATCH 23/31] VAX: Make `extv' an expander matchi... Maciej W. Rozycki
- Re: [PATCH 23/31] VAX: Make `extv' an expand... Jeff Law via Gcc-patches
- [PATCH 24/31] VAX: Fix predicates and constraints... Maciej W. Rozycki
- Re: [PATCH 24/31] VAX: Fix predicates and co... Jeff Law via Gcc-patches