• 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 jm-int.stdout.exp-LE \
8	jm-fp.stderr.exp  jm-fp.stdout.exp  jm-fp.vgtest jm-fp.stdout.exp-LE jm-fp.stdout.exp-LE2 jm-fp.stdout.exp-BE2 \
9	jm-vmx.stderr.exp jm-vmx.stdout.exp jm-vmx.stdout.exp_Minus_nan jm-vmx.stdout.exp-LE \
10	jm-vmx.vgtest \
11	jm-misc.stderr.exp jm-misc.stdout.exp jm-misc.vgtest \
12	lsw.stderr.exp lsw.stdout.exp lsw.vgtest \
13	std_reg_imm.vgtest std_reg_imm.stderr.exp std_reg_imm.stdout.exp std_reg_imm.stdout.exp-LE \
14	round.stderr.exp round.stdout.exp round.vgtest \
15	twi_tdi.stderr.exp twi_tdi.stdout.exp twi_tdi.vgtest \
16	tw_td.stderr.exp tw_td.stdout.exp tw_td.vgtest \
17	opcodes.h \
18	power6_bcmp.stderr.exp power6_bcmp.stdout.exp power6_bcmp.vgtest \
19	power6_mf_gpr.stderr.exp power6_mf_gpr.stdout.exp power6_mf_gpr.vgtest \
20	test_isa_2_06_part1.stderr.exp  test_isa_2_06_part1.stdout.exp  test_isa_2_06_part1.vgtest \
21	test_isa_2_06_part1.stdout.exp-LE \
22	test_isa_2_06_part2.stderr.exp  test_isa_2_06_part2.stdout.exp  test_isa_2_06_part2.vgtest \
23	test_isa_2_06_part3.stderr.exp  test_isa_2_06_part3.stdout.exp  test_isa_2_06_part3.vgtest \
24	test_dfp1.stderr.exp test_dfp1.stdout.exp test_dfp1.vgtest \
25	test_dfp2.stderr.exp test_dfp2.stdout.exp test_dfp2.vgtest \
26	test_dfp2.stdout.exp_Without_dcffix \
27	test_dfp3.stderr.exp test_dfp3.stdout.exp test_dfp3.vgtest \
28	test_dfp4.stderr.exp test_dfp4.stdout.exp test_dfp4.vgtest \
29	test_dfp5.stderr.exp test_dfp5.stdout.exp test_dfp5.vgtest \
30	jm_vec_isa_2_07.stderr.exp jm_vec_isa_2_07.stdout.exp jm_vec_isa_2_07.vgtest \
31	jm_fp_isa_2_07.stderr.exp jm_fp_isa_2_07.stdout.exp jm_fp_isa_2_07.vgtest \
32	jm_int_isa_2_07.stderr.exp jm_int_isa_2_07.vgtest \
33	jm_int_isa_2_07.stdout.exp  jm_int_isa_2_07.stdout.exp-LE \
34	test_isa_2_07_part2.stderr.exp test_isa_2_07_part2.stdout.exp test_isa_2_07_part2.vgtest \
35	test_tm.stderr.exp test_tm.stdout.exp test_tm.vgtest \
36	test_touch_tm.stderr.exp test_touch_tm.stdout.exp test_touch_tm.vgtest \
37	ldst_multiple.stderr.exp ldst_multiple.stdout.exp ldst_multiple.vgtest \
38	data-cache-instructions.stderr.exp data-cache-instructions.stdout.exp data-cache-instructions.vgtest
39
40check_PROGRAMS = \
41	allexec \
42	lsw jm-insns round \
43	test_isa_2_06_part1 test_isa_2_06_part2 test_isa_2_06_part3 \
44	test_dfp1 test_dfp2 test_dfp3 test_dfp4 test_dfp5 \
45	test_isa_2_07_part1 test_isa_2_07_part2 \
46	test_tm test_touch_tm ldst_multiple data-cache-instructions \
47	power6_mf_gpr std_reg_imm \
48	twi_tdi tw_td power6_bcmp
49
50
51AM_CFLAGS    += @FLAG_M64@
52AM_CXXFLAGS  += @FLAG_M64@
53AM_CCASFLAGS += @FLAG_M64@
54
55allexec_CFLAGS		= $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
56
57if HAS_ALTIVEC
58BUILD_FLAG_ALTIVEC = -maltivec
59ALTIVEC_FLAG = -DHAS_ALTIVEC
60else
61BUILD_FLAG_ALTIVEC =
62ALTIVEC_FLAG =
63endif
64
65if HAS_VSX
66BUILD_FLAG_VSX = -mvsx
67VSX_FLAG = -DHAS_VSX
68else
69VSX_FLAG =
70BUILD_FLAG_VSX =
71endif
72
73if HAS_DFP
74BUILD_FLAGS_DFP = -mhard-dfp -mcpu=power6
75DFP_FLAG = -DHAS_DFP
76else
77BUILD_FLAGS_DFP =
78DFP_FLAG =
79endif
80
81if HAS_ISA_2_07
82BUILD_FLAGS_ISA_2_07 = -mcpu=power8
83ISA_2_07_FLAG = -DHAS_ISA_2_07
84else
85BUILD_FLAGS_ISA_2_07 =
86ISA_2_07_FLAG =
87endif
88
89if SUPPORTS_HTM
90HTM_FLAG = -mhtm -DSUPPORTS_HTM
91endif
92
93jm_insns_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames \
94			@FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_ALTIVEC)
95
96test_isa_2_06_part1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
97			@FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
98
99test_isa_2_06_part2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
100			@FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
101
102test_isa_2_06_part3_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
103			@FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
104
105test_dfp1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
106			@FLAG_M64@ $(BUILD_FLAGS_DFP)
107test_dfp2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
108			@FLAG_M64@ $(BUILD_FLAGS_DFP)
109test_dfp3_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
110			@FLAG_M64@ $(BUILD_FLAGS_DFP)
111test_dfp4_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
112			@FLAG_M64@ $(BUILD_FLAGS_DFP)
113test_dfp5_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
114			@FLAG_M64@ $(BUILD_FLAGS_DFP)
115
116test_isa_2_07_part1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(ISA_2_07_FLAG) \
117			@FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
118test_isa_2_07_part2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(ISA_2_07_FLAG) \
119			@FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
120
121test_tm_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(HTM_FLAG) $(ISA_2_07_FLAG) \
122			@FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
123test_touch_tm_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(HTM_FLAG) $(ISA_2_07_FLAG) \
124			@FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
125
126test_isa_2_06_part3_LDADD = -lm
127test_dfp1_LDADD = -lm
128test_dfp2_LDADD = -lm
129test_dfp3_LDADD = -lm
130test_dfp4_LDADD = -lm
131test_dfp5_LDADD = -lm
132test_isa_2_07_part1_LDADD = -lm
133test_isa_2_07_part2_LDADD = -lm
134test_tm_LDADD = -lm
135test_touch_tm_LDADD = -lm
136
137