xref: /aosp_15_r20/external/XNNPACK/scripts/generate-s16-vlshift.sh (revision 4bdc94577ba0e567308109d787f7fec7b531ce36)
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################################### SCALAR ###################################
8tools/xngen src/s16-vlshift/scalar.c.in -D BATCH_TILE=1 -o src/s16-vlshift/gen/scalar-x1.c &
9tools/xngen src/s16-vlshift/scalar.c.in -D BATCH_TILE=2 -o src/s16-vlshift/gen/scalar-x2.c &
10tools/xngen src/s16-vlshift/scalar.c.in -D BATCH_TILE=3 -o src/s16-vlshift/gen/scalar-x3.c &
11tools/xngen src/s16-vlshift/scalar.c.in -D BATCH_TILE=4 -o src/s16-vlshift/gen/scalar-x4.c &
12
13################################### NEON ###################################
14tools/xngen src/s16-vlshift/neon.c.in -D BATCH_TILE=8  -o src/s16-vlshift/gen/neon-x8.c &
15tools/xngen src/s16-vlshift/neon.c.in -D BATCH_TILE=16 -o src/s16-vlshift/gen/neon-x16.c &
16tools/xngen src/s16-vlshift/neon.c.in -D BATCH_TILE=24 -o src/s16-vlshift/gen/neon-x24.c &
17tools/xngen src/s16-vlshift/neon.c.in -D BATCH_TILE=32 -o src/s16-vlshift/gen/neon-x32.c &
18
19################################## Unit tests #################################
20tools/generate-vlshift-test.py --spec test/s16-vlshift.yaml --output test/s16-vlshift.cc &
21
22wait
23