1#!/bin/sh 2# Copyright 2022 Google LLC 3# 4# This source code is licensed under the BSD-style license found in the 5# LICENSE file in the root directory of this source tree. 6 7################################### ARM NEON ################################## 8tools/xngen src/f16-vunary/neonfp16arith.c.in -D OP=ABS -D BATCH_TILE=8 -o src/f16-vunary/gen/vabs-neonfp16arith-x8.c & 9tools/xngen src/f16-vunary/neonfp16arith.c.in -D OP=ABS -D BATCH_TILE=16 -o src/f16-vunary/gen/vabs-neonfp16arith-x16.c & 10tools/xngen src/f16-vunary/neonfp16arith.c.in -D OP=NEG -D BATCH_TILE=8 -o src/f16-vunary/gen/vneg-neonfp16arith-x8.c & 11tools/xngen src/f16-vunary/neonfp16arith.c.in -D OP=NEG -D BATCH_TILE=16 -o src/f16-vunary/gen/vneg-neonfp16arith-x16.c & 12tools/xngen src/f16-vunary/neonfp16arith.c.in -D OP=SQR -D BATCH_TILE=8 -o src/f16-vunary/gen/vsqr-neonfp16arith-x8.c & 13tools/xngen src/f16-vunary/neonfp16arith.c.in -D OP=SQR -D BATCH_TILE=16 -o src/f16-vunary/gen/vsqr-neonfp16arith-x16.c & 14 15################################# x86 128-bit ################################# 16tools/xngen src/f16-vunary/sse2.c.in -D OP=ABS -D BATCH_TILE=8 -o src/f16-vunary/gen/vabs-sse2-x8.c & 17tools/xngen src/f16-vunary/sse2.c.in -D OP=ABS -D BATCH_TILE=16 -o src/f16-vunary/gen/vabs-sse2-x16.c & 18tools/xngen src/f16-vunary/sse2.c.in -D OP=NEG -D BATCH_TILE=8 -o src/f16-vunary/gen/vneg-sse2-x8.c & 19tools/xngen src/f16-vunary/sse2.c.in -D OP=NEG -D BATCH_TILE=16 -o src/f16-vunary/gen/vneg-sse2-x16.c & 20tools/xngen src/f16-vunary/f16c.c.in -D OP=SQR -D BATCH_TILE=8 -o src/f16-vunary/gen/vsqr-f16c-x8.c & 21tools/xngen src/f16-vunary/f16c.c.in -D OP=SQR -D BATCH_TILE=16 -o src/f16-vunary/gen/vsqr-f16c-x16.c & 22 23################################## Unit tests ################################# 24tools/generate-vunary-test.py --spec test/f16-vabs.yaml --output test/f16-vabs.cc & 25tools/generate-vunary-test.py --spec test/f16-vneg.yaml --output test/f16-vneg.cc & 26tools/generate-vunary-test.py --spec test/f16-vsqr.yaml --output test/f16-vsqr.cc & 27 28wait 29