Makefile.am revision 8f943afc22a6a683b78271836c8ddc462b4824a9
1
2include $(top_srcdir)/Makefile.tool-tests.am
3
4dist_noinst_SCRIPTS = filter_stderr
5
6EXTRA_DIST = \
7	bug129390-ppc32.stdout.exp bug129390-ppc32.stderr.exp \
8	bug129390-ppc32.vgtest \
9	bug139050-ppc32.stdout.exp bug139050-ppc32.stderr.exp \
10	bug139050-ppc32.vgtest \
11	ldstrev.stderr.exp ldstrev.stdout.exp ldstrev.vgtest \
12	lsw.stderr.exp lsw.stdout.exp lsw.vgtest \
13	jm-int.stderr.exp jm-int.stdout.exp jm-int.vgtest \
14	jm-fp.stderr.exp jm-fp.stdout.exp jm-fp.vgtest \
15	jm-vmx.stderr.exp jm-vmx.stdout.exp jm-vmx.stdout.exp_Minus_nan \
16	jm-vmx.vgtest \
17	mftocrf.stderr.exp mftocrf.stdout.exp mftocrf.vgtest \
18	mcrfs.stderr.exp mcrfs.stdout.exp mcrfs.vgtest \
19	round.stderr.exp round.stdout.exp round.vgtest \
20	test_fx.stderr.exp test_fx.stdout.exp test_fx.stdout.exp_Minus_nan \
21	test_fx.vgtest \
22	test_gx.stderr.exp test_gx.stdout.exp test_gx.stdout.exp_Minus_nan \
23	test_gx.vgtest \
24	testVMX.stderr.exp  testVMX.stdout.exp  testVMX.vgtest \
25	twi.stderr.exp twi.stdout.exp twi.vgtest \
26	tw.stderr.exp tw.stdout.exp tw.vgtest \
27	xlc_dbl_u32.stderr.exp xlc_dbl_u32.stdout.exp xlc_dbl_u32.vgtest \
28	power5+_round.stderr.exp power5+_round.stdout.exp power5+_round.vgtest \
29	power6_bcmp.stderr.exp power6_bcmp.stdout.exp power6_bcmp.vgtest \
30	test_isa_2_06_part1.stderr.exp  test_isa_2_06_part1.stdout.exp  test_isa_2_06_part1.vgtest \
31	test_isa_2_06_part2.stderr.exp  test_isa_2_06_part2.stdout.exp  test_isa_2_06_part2.vgtest \
32	test_isa_2_06_part3.stderr.exp  test_isa_2_06_part3.stdout.exp  test_isa_2_06_part3.vgtest
33
34check_PROGRAMS = \
35	bug129390-ppc32 \
36	bug139050-ppc32 \
37	ldstrev lsw jm-insns mftocrf mcrfs round test_fx test_gx \
38	testVMX twi tw xlc_dbl_u32 power5+_round power6_bcmp \
39	test_isa_2_06_part1 \
40	test_isa_2_06_part2 \
41	test_isa_2_06_part3
42
43AM_CFLAGS    += @FLAG_M32@
44AM_CXXFLAGS  += @FLAG_M32@
45AM_CCASFLAGS += @FLAG_M32@
46
47if HAS_ALTIVEC
48ALTIVEC_FLAG = -DHAS_ALTIVEC
49else
50ALTIVEC_FLAG =
51endif
52
53if HAS_VSX
54BUILD_FLAG_VSX = -mvsx
55VSX_FLAG = -DHAS_VSX
56else
57BUILD_FLAG_VSX =
58VSX_FLAG =
59endif
60
61jm_insns_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames -maltivec \
62			@FLAG_M32@ $(ALTIVEC_FLAG)
63
64testVMX_CFLAGS  = $(AM_CFLAGS) -O -g -Wall -maltivec -mabi=altivec -DALTIVEC \
65			-DGCC_COMPILER @FLAG_M32@
66
67test_isa_2_06_part1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
68			@FLAG_M32@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
69
70test_isa_2_06_part2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
71			@FLAG_M32@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
72
73test_isa_2_06_part3_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(VSX_FLAG) \
74			@FLAG_M32@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
75
76