[PATCH v2 0/2] util/bufferiszero: Split out hosts, add loongarch64

Richard Henderson posted 2 patches 5 months, 3 weeks ago
Failed in applying to current master (apply log)
util/bufferiszero.c                           | 191 +-----------------
host/include/aarch64/host/bufferiszero.c.inc  |  76 +++++++
host/include/generic/host/bufferiszero.c.inc  |  10 +
host/include/i386/host/bufferiszero.c.inc     | 124 ++++++++++++
.../loongarch64/host/bufferiszero.c.inc       | 143 +++++++++++++
host/include/x86_64/host/bufferiszero.c.inc   |   1 +
6 files changed, 355 insertions(+), 190 deletions(-)
create mode 100644 host/include/aarch64/host/bufferiszero.c.inc
create mode 100644 host/include/generic/host/bufferiszero.c.inc
create mode 100644 host/include/i386/host/bufferiszero.c.inc
create mode 100644 host/include/loongarch64/host/bufferiszero.c.inc
create mode 100644 host/include/x86_64/host/bufferiszero.c.inc
[PATCH v2 0/2] util/bufferiszero: Split out hosts, add loongarch64
Posted by Richard Henderson 5 months, 3 weeks ago
Based-on: 20240527211912.14060-1-richard.henderson@linaro.org
("[PATCH 00/18] tcg/loongarch64: Support v64 and v256")
For "util/loongarch64: Detect LASX vector support"

For v2:
  * Rename to bufferiszero.c.inc (philmd).
  * Add inline assembly for loongarch64.

On cfarm400.cfarm.net (Loongson-3C5000L-LL @ 2.0GHz):

# Start of bufferiszero tests
# buffer_is_zero #0:  1KB    11021 MB/sec
# buffer_is_zero #0:  4KB    32107 MB/sec
# buffer_is_zero #0: 16KB    59118 MB/sec
# buffer_is_zero #0: 64KB    67940 MB/sec
# 
# buffer_is_zero #1:  1KB     9540 MB/sec
# buffer_is_zero #1:  4KB    24050 MB/sec
# buffer_is_zero #1: 16KB    38082 MB/sec
# buffer_is_zero #1: 64KB    36399 MB/sec
# 
# buffer_is_zero #2:  1KB     8026 MB/sec
# buffer_is_zero #2:  4KB    15493 MB/sec
# buffer_is_zero #2: 16KB    20865 MB/sec
# buffer_is_zero #2: 64KB    19694 MB/sec


r~


Richard Henderson (2):
  util/bufferiszero: Split out host include files
  util/bufferiszero: Add loongarch64 vector acceleration

 util/bufferiszero.c                           | 191 +-----------------
 host/include/aarch64/host/bufferiszero.c.inc  |  76 +++++++
 host/include/generic/host/bufferiszero.c.inc  |  10 +
 host/include/i386/host/bufferiszero.c.inc     | 124 ++++++++++++
 .../loongarch64/host/bufferiszero.c.inc       | 143 +++++++++++++
 host/include/x86_64/host/bufferiszero.c.inc   |   1 +
 6 files changed, 355 insertions(+), 190 deletions(-)
 create mode 100644 host/include/aarch64/host/bufferiszero.c.inc
 create mode 100644 host/include/generic/host/bufferiszero.c.inc
 create mode 100644 host/include/i386/host/bufferiszero.c.inc
 create mode 100644 host/include/loongarch64/host/bufferiszero.c.inc
 create mode 100644 host/include/x86_64/host/bufferiszero.c.inc

-- 
2.34.1