xref: /openbmc/qemu/tests/tcg/hexagon/Makefile.target (revision b3eb5b86)
1##
2##  Copyright(c) 2019-2022 Qualcomm Innovation Center, Inc. All Rights Reserved.
3##
4##  This program is free software; you can redistribute it and/or modify
5##  it under the terms of the GNU General Public License as published by
6##  the Free Software Foundation; either version 2 of the License, or
7##  (at your option) any later version.
8##
9##  This program is distributed in the hope that it will be useful,
10##  but WITHOUT ANY WARRANTY; without even the implied warranty of
11##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12##  GNU General Public License for more details.
13##
14##  You should have received a copy of the GNU General Public License
15##  along with this program; if not, see <http://www.gnu.org/licenses/>.
16##
17
18# Hexagon doesn't support gdb, so skip the EXTRA_RUNS
19EXTRA_RUNS =
20
21CFLAGS += -Wno-incompatible-pointer-types -Wno-undefined-internal
22CFLAGS += -fno-unroll-loops
23
24HEX_SRC=$(SRC_PATH)/tests/tcg/hexagon
25VPATH += $(HEX_SRC)
26
27%: $(HEX_SRC)/%.S $(HEX_SRC)/crt.S
28	$(CC) -static -mv67 -nostdlib $^ -o $@
29
30HEX_TESTS = first
31HEX_TESTS += hex_sigsegv
32HEX_TESTS += misc
33HEX_TESTS += usr
34HEX_TESTS += preg_alias
35HEX_TESTS += dual_stores
36HEX_TESTS += multi_result
37HEX_TESTS += mem_noshuf
38HEX_TESTS += mem_noshuf_exception
39HEX_TESTS += circ
40HEX_TESTS += brev
41HEX_TESTS += load_unpack
42HEX_TESTS += load_align
43HEX_TESTS += atomics
44HEX_TESTS += fpstuff
45HEX_TESTS += overflow
46
47HEX_TESTS += test_abs
48HEX_TESTS += test_bitcnt
49HEX_TESTS += test_bitsplit
50HEX_TESTS += test_call
51HEX_TESTS += test_clobber
52HEX_TESTS += test_cmp
53HEX_TESTS += test_dotnew
54HEX_TESTS += test_ext
55HEX_TESTS += test_fibonacci
56HEX_TESTS += test_hl
57HEX_TESTS += test_hwloops
58HEX_TESTS += test_jmp
59HEX_TESTS += test_lsr
60HEX_TESTS += test_mpyi
61HEX_TESTS += test_packet
62HEX_TESTS += test_reorder
63HEX_TESTS += test_round
64HEX_TESTS += test_vavgw
65HEX_TESTS += test_vcmpb
66HEX_TESTS += test_vcmpw
67HEX_TESTS += test_vlsrw
68HEX_TESTS += test_vmaxh
69HEX_TESTS += test_vminh
70HEX_TESTS += test_vpmpyh
71HEX_TESTS += test_vspliceb
72
73TESTS += $(HEX_TESTS)
74
75# This test has to be compiled for the -mv67t target
76usr: usr.c
77	$(CC) $(CFLAGS) -mv67t -O2 -Wno-inline-asm -Wno-expansion-to-defined $< -o $@ $(LDFLAGS)
78
79