xref: /openbmc/qemu/tests/tcg/hexagon/Makefile.target (revision 585a86b1041a45c3b4074440c7f1b54944570867)
1dff2441cSTaylor Simpson##
24d04395aSTaylor Simpson##  Copyright(c) 2019-2022 Qualcomm Innovation Center, Inc. All Rights Reserved.
3dff2441cSTaylor Simpson##
4dff2441cSTaylor Simpson##  This program is free software; you can redistribute it and/or modify
5dff2441cSTaylor Simpson##  it under the terms of the GNU General Public License as published by
6dff2441cSTaylor Simpson##  the Free Software Foundation; either version 2 of the License, or
7dff2441cSTaylor Simpson##  (at your option) any later version.
8dff2441cSTaylor Simpson##
9dff2441cSTaylor Simpson##  This program is distributed in the hope that it will be useful,
10dff2441cSTaylor Simpson##  but WITHOUT ANY WARRANTY; without even the implied warranty of
11dff2441cSTaylor Simpson##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12dff2441cSTaylor Simpson##  GNU General Public License for more details.
13dff2441cSTaylor Simpson##
14dff2441cSTaylor Simpson##  You should have received a copy of the GNU General Public License
15dff2441cSTaylor Simpson##  along with this program; if not, see <http://www.gnu.org/licenses/>.
16dff2441cSTaylor Simpson##
17dff2441cSTaylor Simpson
18dff2441cSTaylor Simpson# Hexagon doesn't support gdb, so skip the EXTRA_RUNS
19dff2441cSTaylor SimpsonEXTRA_RUNS =
20dff2441cSTaylor Simpson
21dff2441cSTaylor SimpsonCFLAGS += -Wno-incompatible-pointer-types -Wno-undefined-internal
2246ef47e2STaylor SimpsonCFLAGS += -fno-unroll-loops
23825d6ebaSTaylor Simpson
24825d6ebaSTaylor SimpsonHEX_SRC=$(SRC_PATH)/tests/tcg/hexagon
25825d6ebaSTaylor SimpsonVPATH += $(HEX_SRC)
26825d6ebaSTaylor Simpson
27*585a86b1SNiccolò Izzo%: $(HEX_SRC)/%.S $(HEX_SRC)/crt.S
28825d6ebaSTaylor Simpson	$(CC) -static -mv67 -nostdlib $^ -o $@
29825d6ebaSTaylor Simpson
30825d6ebaSTaylor SimpsonHEX_TESTS = first
31c23b5764STaylor SimpsonHEX_TESTS += hex_sigsegv
32825d6ebaSTaylor SimpsonHEX_TESTS += misc
334d04395aSTaylor SimpsonHEX_TESTS += usr
34825d6ebaSTaylor SimpsonHEX_TESTS += preg_alias
35825d6ebaSTaylor SimpsonHEX_TESTS += dual_stores
36d934c16dSTaylor SimpsonHEX_TESTS += multi_result
37825d6ebaSTaylor SimpsonHEX_TESTS += mem_noshuf
3815fc6badSTaylor SimpsonHEX_TESTS += mem_noshuf_exception
3946ef47e2STaylor SimpsonHEX_TESTS += circ
40af7f1821STaylor SimpsonHEX_TESTS += brev
410d0b91a8STaylor SimpsonHEX_TESTS += load_unpack
427aa9ffabSTaylor SimpsonHEX_TESTS += load_align
43825d6ebaSTaylor SimpsonHEX_TESTS += atomics
44703c08d9STaylor SimpsonHEX_TESTS += fpstuff
45b9dd6ff9STaylor SimpsonHEX_TESTS += overflow
46825d6ebaSTaylor Simpson
47*585a86b1SNiccolò IzzoHEX_TESTS += test_abs
48*585a86b1SNiccolò IzzoHEX_TESTS += test_bitcnt
49*585a86b1SNiccolò IzzoHEX_TESTS += test_bitsplit
50*585a86b1SNiccolò IzzoHEX_TESTS += test_call
51*585a86b1SNiccolò IzzoHEX_TESTS += test_clobber
52*585a86b1SNiccolò IzzoHEX_TESTS += test_cmp
53*585a86b1SNiccolò IzzoHEX_TESTS += test_dotnew
54*585a86b1SNiccolò IzzoHEX_TESTS += test_ext
55*585a86b1SNiccolò IzzoHEX_TESTS += test_fibonacci
56*585a86b1SNiccolò IzzoHEX_TESTS += test_hl
57*585a86b1SNiccolò IzzoHEX_TESTS += test_hwloops
58*585a86b1SNiccolò IzzoHEX_TESTS += test_jmp
59*585a86b1SNiccolò IzzoHEX_TESTS += test_lsr
60*585a86b1SNiccolò IzzoHEX_TESTS += test_mpyi
61*585a86b1SNiccolò IzzoHEX_TESTS += test_packet
62*585a86b1SNiccolò IzzoHEX_TESTS += test_reorder
63*585a86b1SNiccolò IzzoHEX_TESTS += test_round
64*585a86b1SNiccolò IzzoHEX_TESTS += test_vavgw
65*585a86b1SNiccolò IzzoHEX_TESTS += test_vcmpb
66*585a86b1SNiccolò IzzoHEX_TESTS += test_vcmpw
67*585a86b1SNiccolò IzzoHEX_TESTS += test_vlsrw
68*585a86b1SNiccolò IzzoHEX_TESTS += test_vmaxh
69*585a86b1SNiccolò IzzoHEX_TESTS += test_vminh
70*585a86b1SNiccolò IzzoHEX_TESTS += test_vpmpyh
71*585a86b1SNiccolò IzzoHEX_TESTS += test_vspliceb
72*585a86b1SNiccolò Izzo
73825d6ebaSTaylor SimpsonTESTS += $(HEX_TESTS)
744d04395aSTaylor Simpson
754d04395aSTaylor Simpson# This test has to be compiled for the -mv67t target
764d04395aSTaylor Simpsonusr: usr.c
774d04395aSTaylor Simpson	$(CC) $(CFLAGS) -mv67t -O2 -Wno-inline-asm -Wno-expansion-to-defined $< -o $@ $(LDFLAGS)
784d04395aSTaylor Simpson
79