• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2include $(top_srcdir)/Makefile.tool-tests.am
3
4dist_noinst_SCRIPTS = filter_stderr
5
6EXTRA_DIST = \
7	jm-int.stderr.exp jm-int.stdout.exp jm-int.vgtest \
8	jm-fp.stderr.exp  jm-fp.stdout.exp  jm-fp.vgtest \
9	jm-vmx.stderr.exp jm-vmx.stdout.exp jm-vmx.stdout.exp_Minus_nan \
10	jm-vmx.vgtest \
11	lsw.stderr.exp lsw.stdout.exp lsw.vgtest \
12	std_reg_imm.vgtest std_reg_imm.stderr.exp std_reg_imm.stdout.exp \
13	round.stderr.exp round.stdout.exp round.vgtest \
14	twi_tdi.stderr.exp twi_tdi.stdout.exp twi_tdi.vgtest \
15	tw_td.stderr.exp tw_td.stdout.exp tw_td.vgtest \
16	power6_bcmp.stderr.exp power6_bcmp.stdout.exp power6_bcmp.vgtest \
17	power6_mf_gpr.stderr.exp power6_mf_gpr.stdout.exp power6_mf_gpr.vgtest \
18	test_isa_2_06_part1.stderr.exp  test_isa_2_06_part1.stdout.exp  test_isa_2_06_part1.vgtest \
19	test_isa_2_06_part2.stderr.exp  test_isa_2_06_part2.stdout.exp  test_isa_2_06_part2.vgtest \
20	test_isa_2_06_part3.stderr.exp  test_isa_2_06_part3.stdout.exp  test_isa_2_06_part3.vgtest \
21	test_dfp1.stderr.exp test_dfp1.stdout.exp test_dfp1.vgtest \
22	test_dfp2.stderr.exp test_dfp2.stdout.exp test_dfp2.vgtest \
23	test_dfp2.stdout.exp_Without_dcffix \
24	test_dfp3.stderr.exp test_dfp3.stdout.exp test_dfp3.vgtest \
25	test_dfp4.stderr.exp test_dfp4.stdout.exp test_dfp4.vgtest \
26	test_dfp5.stderr.exp test_dfp5.stdout.exp test_dfp5.vgtest
27
28check_PROGRAMS = \
29	allexec \
30	jm-insns lsw round std_reg_imm twi_tdi tw_td power6_bcmp power6_mf_gpr test_isa_2_06_part1 \
31	test_isa_2_06_part2 test_isa_2_06_part3 test_dfp1 test_dfp2 test_dfp3 test_dfp4 test_dfp5
32
33AM_CFLAGS    += @FLAG_M64@
34AM_CXXFLAGS  += @FLAG_M64@
35AM_CCASFLAGS += @FLAG_M64@
36
37allexec_CFLAGS		= $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
38
39if HAS_ALTIVEC
40ALTIVEC_FLAG = -DHAS_ALTIVEC
41else
42ALTIVEC_FLAG =
43endif
44
45if HAS_VSX
46BUILD_FLAG_VSX = -mvsx
47VSX_FLAG = -DHAS_VSX
48else
49VSX_FLAG =
50BUILD_FLAG_VSX =
51endif
52
53if HAS_DFP
54BUILD_FLAGS_DFP = -mhard-dfp -mcpu=power6
55DFP_FLAG = -DHAS_DFP
56else
57BUILD_FLAGS_DFP =
58DFP_FLAG =
59endif
60
61test_isa_2_06_part1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
62			@FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
63
64test_isa_2_06_part2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
65			@FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
66
67test_isa_2_06_part3_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(VSX_FLAG) \
68			@FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
69
70jm_insns_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames -maltivec \
71			@FLAG_M64@ $(ALTIVEC_FLAG)
72
73test_dfp1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(DFP_FLAG) \
74			@FLAG_M64@ $(BUILD_FLAGS_DFP)
75
76test_dfp2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(DFP_FLAG) \
77			@FLAG_M64@ $(BUILD_FLAGS_DFP)
78test_dfp3_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(DFP_FLAG) \
79			@FLAG_M64@ $(BUILD_FLAGS_DFP)
80
81test_dfp4_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(DFP_FLAG) \
82			@FLAG_M64@ $(BUILD_FLAGS_DFP)
83
84test_dfp5_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(DFP_FLAG) \
85			@FLAG_M64@ $(BUILD_FLAGS_DFP)
86
87