blob: 4111be8fc9ce3f03025fc32064e33400bc740838 [file] [log] [blame]
Marat Dukhan4c4eb002019-12-08 21:27:49 -08001#!/bin/sh
2# Copyright 2019 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################################### x86 AVX2 ##################################
8tools/xngen src/f32-vscaleextexp/avx2-p5.c.in -D ELEMENTS_TILE=8 -o src/f32-vscaleextexp/gen/avx2-p5-x8.c
9tools/xngen src/f32-vscaleextexp/avx2-p5.c.in -D ELEMENTS_TILE=16 -o src/f32-vscaleextexp/gen/avx2-p5-x16.c
10tools/xngen src/f32-vscaleextexp/avx2-p5.c.in -D ELEMENTS_TILE=24 -o src/f32-vscaleextexp/gen/avx2-p5-x24.c
11tools/xngen src/f32-vscaleextexp/avx2-p5.c.in -D ELEMENTS_TILE=32 -o src/f32-vscaleextexp/gen/avx2-p5-x32.c
12tools/xngen src/f32-vscaleextexp/avx2-p5.c.in -D ELEMENTS_TILE=40 -o src/f32-vscaleextexp/gen/avx2-p5-x40.c
13tools/xngen src/f32-vscaleextexp/avx2-p5.c.in -D ELEMENTS_TILE=48 -o src/f32-vscaleextexp/gen/avx2-p5-x48.c
14tools/xngen src/f32-vscaleextexp/avx2-p5.c.in -D ELEMENTS_TILE=56 -o src/f32-vscaleextexp/gen/avx2-p5-x56.c
15tools/xngen src/f32-vscaleextexp/avx2-p5.c.in -D ELEMENTS_TILE=64 -o src/f32-vscaleextexp/gen/avx2-p5-x64.c
16tools/xngen src/f32-vscaleextexp/avx2-p5.c.in -D ELEMENTS_TILE=72 -o src/f32-vscaleextexp/gen/avx2-p5-x72.c
17tools/xngen src/f32-vscaleextexp/avx2-p5.c.in -D ELEMENTS_TILE=80 -o src/f32-vscaleextexp/gen/avx2-p5-x80.c
18tools/xngen src/f32-vscaleextexp/avx2-p5.c.in -D ELEMENTS_TILE=88 -o src/f32-vscaleextexp/gen/avx2-p5-x88.c
19tools/xngen src/f32-vscaleextexp/avx2-p5.c.in -D ELEMENTS_TILE=96 -o src/f32-vscaleextexp/gen/avx2-p5-x96.c
20
21################################# x86 AVX512F #################################
22tools/xngen src/f32-vscaleextexp/avx512f-p5-scalef.c.in -D ELEMENTS_TILE=16 -o src/f32-vscaleextexp/gen/avx512f-p5-scalef-x16.c
23tools/xngen src/f32-vscaleextexp/avx512f-p5-scalef.c.in -D ELEMENTS_TILE=32 -o src/f32-vscaleextexp/gen/avx512f-p5-scalef-x32.c
24tools/xngen src/f32-vscaleextexp/avx512f-p5-scalef.c.in -D ELEMENTS_TILE=48 -o src/f32-vscaleextexp/gen/avx512f-p5-scalef-x48.c
25tools/xngen src/f32-vscaleextexp/avx512f-p5-scalef.c.in -D ELEMENTS_TILE=64 -o src/f32-vscaleextexp/gen/avx512f-p5-scalef-x64.c
26tools/xngen src/f32-vscaleextexp/avx512f-p5-scalef.c.in -D ELEMENTS_TILE=80 -o src/f32-vscaleextexp/gen/avx512f-p5-scalef-x80.c
27tools/xngen src/f32-vscaleextexp/avx512f-p5-scalef.c.in -D ELEMENTS_TILE=96 -o src/f32-vscaleextexp/gen/avx512f-p5-scalef-x96.c
28tools/xngen src/f32-vscaleextexp/avx512f-p5-scalef.c.in -D ELEMENTS_TILE=112 -o src/f32-vscaleextexp/gen/avx512f-p5-scalef-x112.c
29tools/xngen src/f32-vscaleextexp/avx512f-p5-scalef.c.in -D ELEMENTS_TILE=128 -o src/f32-vscaleextexp/gen/avx512f-p5-scalef-x128.c
30tools/xngen src/f32-vscaleextexp/avx512f-p5-scalef.c.in -D ELEMENTS_TILE=144 -o src/f32-vscaleextexp/gen/avx512f-p5-scalef-x144.c
31tools/xngen src/f32-vscaleextexp/avx512f-p5-scalef.c.in -D ELEMENTS_TILE=160 -o src/f32-vscaleextexp/gen/avx512f-p5-scalef-x160.c
32tools/xngen src/f32-vscaleextexp/avx512f-p5-scalef.c.in -D ELEMENTS_TILE=176 -o src/f32-vscaleextexp/gen/avx512f-p5-scalef-x176.c
33tools/xngen src/f32-vscaleextexp/avx512f-p5-scalef.c.in -D ELEMENTS_TILE=192 -o src/f32-vscaleextexp/gen/avx512f-p5-scalef-x192.c
34
35################################## Unit tests #################################
36tools/generate-vscaleextexp-test.py --spec test/f32-vscaleextexp.yaml --output test/f32-vscaleextexp.cc