blob: ed72ca493998c428c4d35fd5137d9e97089276f4 [file] [log] [blame]
petarj8bea8672013-05-10 13:14:54 +00001
2include $(top_srcdir)/Makefile.tool-tests.am
3
4dist_noinst_SCRIPTS = filter_stderr
5
petarjb35637a2013-05-28 16:51:27 +00006EXTRA_DIST = \
7 arithmetic_instruction.stdout.exp-mips64 \
8 arithmetic_instruction.stdout.exp-mips64r2 arithmetic_instruction.stderr.exp \
9 arithmetic_instruction.vgtest \
10 branch_and_jump_instructions.stdout.exp \
11 branch_and_jump_instructions.stderr.exp branch_and_jump_instructions.vgtest \
petarj1f458f52013-06-02 17:23:43 +000012 branches.stdout.exp branches.stderr.exp branches.vgtest \
Elliott Hughesa0664b92017-04-18 17:46:52 -070013 change_fp_mode.stderr.exp change_fp_mode.stdout.exp change_fp_mode.vgtest \
petarj0cf63b02014-09-04 01:07:08 +000014 cvm_bbit.stdout.exp cvm_bbit.stdout.exp-non-octeon \
15 cvm_bbit.stderr.exp cvm_bbit.vgtest \
petarj6228e112014-01-31 12:49:22 +000016 cvm_ins.stdout.exp cvm_ins.stdout.exp-non-octeon \
17 cvm_ins.stderr.exp cvm_ins.vgtest \
petarj83765912014-02-15 03:38:57 +000018 cvm_lx_ins.stdout.exp-LE cvm_lx_ins.stdout.exp-BE \
19 cvm_lx_ins.stdout.exp-non-octeon \
petarj6228e112014-01-31 12:49:22 +000020 cvm_lx_ins.stderr.exp cvm_lx_ins.vgtest \
Elliott Hughesed398002017-06-21 14:41:24 -070021 cvm_atomic.stdout.exp-LE cvm_atomic.stdout.exp-BE \
22 cvm_atomic.stdout.exp-non-octeon \
dejanjdca0af62014-06-04 11:36:21 +000023 cvm_atomic.stderr.exp cvm_atomic.vgtest \
Elliott Hughesed398002017-06-21 14:41:24 -070024 cvm_atomic_thread.stdout.exp cvm_atomic_thread.stdout.exp-non-octeon \
dejanjdca0af62014-06-04 11:36:21 +000025 cvm_atomic_thread.stderr.exp cvm_atomic_thread.vgtest \
petarjb35637a2013-05-28 16:51:27 +000026 extract_insert_bit_field.stdout.exp-mips64 \
27 extract_insert_bit_field.stdout.exp-mips64r2 \
28 extract_insert_bit_field.stderr.exp extract_insert_bit_field.vgtest \
29 fpu_arithmetic.stdout.exp fpu_arithmetic.stderr.exp fpu_arithmetic.vgtest \
30 fpu_branches.stdout.exp fpu_branches.stderr.exp fpu_branches.vgtest \
31 fpu_control_word.stdout.exp fpu_control_word.stderr.exp \
32 fpu_control_word.vgtest \
33 fpu_load_store.stdout.exp-BE fpu_load_store.stdout.exp-LE \
34 fpu_load_store.stderr.exp fpu_load_store.vgtest \
petarj77b19862014-02-14 17:50:42 +000035 load_indexed_instructions.stdout.exp-BE \
36 load_indexed_instructions.stdout.exp-LE \
37 load_indexed_instructions.stdout.exp-non-octeon \
38 load_indexed_instructions.stderr.exp load_indexed_instructions.vgtest \
petarjb35637a2013-05-28 16:51:27 +000039 load_store.stdout.exp-BE load_store.stdout.exp-LE load_store.stderr.exp \
40 load_store.vgtest \
41 load_store_multiple.stdout.exp-BE load_store_multiple.stdout.exp-LE \
42 load_store_multiple.stderr.exp load_store_multiple.vgtest \
43 load_store_unaligned.stdout.exp load_store_unaligned.stderr.exp \
44 load_store_unaligned.vgtest \
45 logical_instructions.stdout.exp logical_instructions.stderr.exp \
46 logical_instructions.vgtest \
47 move_instructions.stdout.exp-BE move_instructions.stdout.exp-LE \
48 move_instructions.stderr.exp move_instructions.vgtest \
49 rotate_swap.stdout.exp-mips64 rotate_swap.stdout.exp-mips64r2 \
50 rotate_swap.stderr.exp rotate_swap.vgtest \
51 round.stdout.exp round.stderr.exp round.vgtest \
petarj2ff6ff22013-06-09 14:29:10 +000052 shift_instructions.stdout.exp-mips64 shift_instructions.stdout.exp-mips64r2 \
petarjb35637a2013-05-28 16:51:27 +000053 shift_instructions.stderr.exp shift_instructions.vgtest \
54 test_block_size.stdout.exp test_block_size.stderr.exp \
55 test_block_size.vgtest \
petarj77b19862014-02-14 17:50:42 +000056 test_fcsr.stdout.exp test_fcsr.stderr.exp \
57 test_fcsr.vgtest \
Elliott Hughesed398002017-06-21 14:41:24 -070058 test_math.stdout.exp test_math.stdout.exp-older-gcc \
59 test_math.stderr.exp test_math.vgtest \
petarjb35637a2013-05-28 16:51:27 +000060 unaligned_load.stdout.exp-BE unaligned_load.stdout.exp-LE \
dejanjfd7db802013-09-02 15:35:12 +000061 unaligned_load.stderr.exp unaligned_load.vgtest \
62 unaligned_load_store.stdout.exp-LE unaligned_load_store.stdout.exp-BE \
dejanj4164a812013-09-18 10:08:23 +000063 unaligned_load_store.stderr.exp unaligned_load_store.vgtest \
petarj77b19862014-02-14 17:50:42 +000064 const.h macro_fpu.h macro_int.h macro_load_store.h rounding_mode.h
petarjb35637a2013-05-28 16:51:27 +000065
petarj8bea8672013-05-10 13:14:54 +000066check_PROGRAMS = \
petarjb35637a2013-05-28 16:51:27 +000067 allexec \
68 arithmetic_instruction \
69 branch_and_jump_instructions \
70 branches \
Elliott Hughesa0664b92017-04-18 17:46:52 -070071 change_fp_mode \
petarj0cf63b02014-09-04 01:07:08 +000072 cvm_bbit \
petarjdf8e6862013-09-18 02:19:45 +000073 cvm_ins \
petarj6228e112014-01-31 12:49:22 +000074 cvm_lx_ins \
dejanjdca0af62014-06-04 11:36:21 +000075 cvm_atomic \
76 cvm_atomic_thread \
petarjb35637a2013-05-28 16:51:27 +000077 extract_insert_bit_field \
78 fpu_arithmetic \
79 fpu_branches \
80 fpu_control_word \
81 fpu_load_store \
petarj77b19862014-02-14 17:50:42 +000082 load_indexed_instructions \
petarjb35637a2013-05-28 16:51:27 +000083 load_store \
84 load_store_multiple \
85 load_store_unaligned \
86 logical_instructions \
87 move_instructions \
88 rotate_swap \
89 round \
90 shift_instructions \
91 test_block_size \
dejanj1b9c2492013-11-14 15:45:26 +000092 test_fcsr \
petarj77b19862014-02-14 17:50:42 +000093 test_math \
94 unaligned_load \
95 unaligned_load_store
petarj8bea8672013-05-10 13:14:54 +000096
97AM_CFLAGS += @FLAG_M64@
98AM_CXXFLAGS += @FLAG_M64@
99AM_CCASFLAGS += @FLAG_M64@
100
101allexec_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
petarjdf8e6862013-09-18 02:19:45 +0000102
petarj0cf63b02014-09-04 01:07:08 +0000103cvm_bbit_CFLAGS = $(AM_CFLAGS) -g -O0 @FLAG_OCTEON@
petarj6228e112014-01-31 12:49:22 +0000104cvm_ins_CFLAGS = $(AM_CFLAGS) -g -O0 @FLAG_OCTEON@
105cvm_lx_ins_CFLAGS = $(AM_CFLAGS) -g -O0 @FLAG_OCTEON2@
dejanjdca0af62014-06-04 11:36:21 +0000106cvm_atomic_CFLAGS = $(AM_CFLAGS) -g -O0 @FLAG_OCTEON2@
107cvm_atomic_thread_CFLAGS = $(AM_CFLAGS) -g -O0 @FLAG_OCTEON2@
petarj77b19862014-02-14 17:50:42 +0000108load_indexed_instructions_CFLAGS = $(AM_CFLAGS) -g -O0 @FLAG_OCTEON2@
dejanjeec22de2013-10-10 09:10:35 +0000109fpu_arithmetic_CFLAGS = $(AM_CFLAGS) -lm
dejanj1b9c2492013-11-14 15:45:26 +0000110
111# C++ tests
112test_math_SOURCES = test_math.cpp