• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2include $(top_srcdir)/Makefile.tool-tests.am
3
4dist_noinst_SCRIPTS = filter_stderr
5
6noinst_HEADERS = ppc64_helpers.h
7
8EXTRA_DIST = \
9	jm-int.stderr.exp jm-int.stdout.exp jm-int.vgtest jm-int.stdout.exp-LE \
10   jm-int.stdout.exp-LE-ISA3_0 \
11	jm-int_other.stderr.exp jm-int_other.stdout.exp jm-int_other.vgtest \
12	jm-int_other.stdout.exp-LE \
13	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 \
14	jm-vmx.stderr.exp jm-vmx.stdout.exp jm-vmx.stdout.exp_Minus_nan jm-vmx.stdout.exp-LE \
15	jm-vmx.vgtest \
16	jm-misc.stderr.exp jm-misc.stdout.exp jm-misc.vgtest \
17	lsw.stderr.exp lsw.stdout.exp lsw.vgtest \
18	std_reg_imm.vgtest std_reg_imm.stderr.exp std_reg_imm.stdout.exp std_reg_imm.stdout.exp-LE \
19	round.stderr.exp round.stdout.exp round.vgtest \
20	twi_tdi.stderr.exp twi_tdi.stdout.exp twi_tdi.vgtest \
21	tw_td.stderr.exp tw_td.stdout.exp tw_td.vgtest \
22	opcodes.h \
23	power6_bcmp.stderr.exp power6_bcmp.stdout.exp power6_bcmp.vgtest \
24	power6_mf_gpr.stderr.exp power6_mf_gpr.stdout.exp power6_mf_gpr.vgtest \
25	test_isa_2_06_part1.stderr.exp  test_isa_2_06_part1.stdout.exp  test_isa_2_06_part1.vgtest \
26	test_isa_2_06_part1.stdout.exp-LE \
27	test_isa_2_06_part2.stderr.exp  test_isa_2_06_part2.stdout.exp  test_isa_2_06_part2.vgtest \
28	test_isa_2_06_part2-div.stderr.exp  test_isa_2_06_part2-div.stdout.exp \
29	test_isa_2_06_part2-div.stdout.exp-LE-ISA3_0 test_isa_2_06_part2-div.vgtest \
30	test_isa_2_06_part3.stderr.exp  test_isa_2_06_part3.stdout.exp  test_isa_2_06_part3.vgtest \
31	test_isa_2_06_part3-div.stderr.exp  test_isa_2_06_part3-div.stdout.exp \
32	test_isa_2_06_part3-div.stdout.exp-LE-ISA3_0  test_isa_2_06_part3-div.vgtest \
33	test_dfp1.stderr.exp test_dfp1.stdout.exp test_dfp1.vgtest \
34	test_dfp2.stderr.exp test_dfp2.stdout.exp test_dfp2.vgtest \
35	test_dfp2.stdout.exp_Without_dcffix \
36	test_dfp3.stderr.exp test_dfp3.stdout.exp test_dfp3.vgtest \
37	test_dfp4.stderr.exp test_dfp4.stdout.exp test_dfp4.vgtest \
38	test_dfp5.stderr.exp test_dfp5.stdout.exp test_dfp5.vgtest \
39	jm_vec_isa_2_07.stderr.exp jm_vec_isa_2_07.stdout.exp jm_vec_isa_2_07.vgtest \
40	jm_fp_isa_2_07.stderr.exp jm_fp_isa_2_07.stdout.exp jm_fp_isa_2_07.vgtest \
41	jm_int_isa_2_07.stderr.exp jm_int_isa_2_07.vgtest \
42	jm_int_isa_2_07.stdout.exp  jm_int_isa_2_07.stdout.exp-LE \
43	test_isa_2_07_part2.stderr.exp test_isa_2_07_part2.stdout.exp test_isa_2_07_part2.vgtest \
44	test_tm.stderr.exp test_tm.stdout.exp test_tm.vgtest \
45	test_touch_tm.stderr.exp test_touch_tm.stdout.exp test_touch_tm.vgtest \
46	ldst_multiple.stderr.exp ldst_multiple.stdout.exp ldst_multiple.vgtest \
47	data-cache-instructions.stderr.exp data-cache-instructions.stdout.exp data-cache-instructions.vgtest \
48	test_isa_3_0_altivec.stderr.exp test_isa_3_0_altivec.stdout.exp \
49	test_isa_3_0_altivec.stdout.exp-LE test_isa_3_0_altivec.vgtest \
50	test_isa_3_0_other.stderr.exp test_isa_3_0_other.stdout.exp \
51   test_isa_3_0_other.stdout.exp-LE test_isa_3_0_other.vgtest
52
53check_PROGRAMS = \
54	allexec \
55	lsw jm-insns round \
56	test_isa_2_06_part1 test_isa_2_06_part2 test_isa_2_06_part3 \
57	test_dfp1 test_dfp2 test_dfp3 test_dfp4 test_dfp5 \
58	test_isa_2_07_part1 test_isa_2_07_part2 \
59	test_isa_3_0 \
60	test_tm test_touch_tm ldst_multiple data-cache-instructions \
61	power6_mf_gpr std_reg_imm \
62	twi_tdi tw_td power6_bcmp
63
64
65AM_CFLAGS    += @FLAG_M64@
66AM_CXXFLAGS  += @FLAG_M64@
67AM_CCASFLAGS += @FLAG_M64@
68
69allexec_CFLAGS		= $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
70
71if HAS_ALTIVEC
72BUILD_FLAG_ALTIVEC = -maltivec
73ALTIVEC_FLAG = -DHAS_ALTIVEC
74else
75BUILD_FLAG_ALTIVEC =
76ALTIVEC_FLAG =
77endif
78
79if HAS_VSX
80BUILD_FLAG_VSX = -mvsx
81VSX_FLAG = -DHAS_VSX
82else
83VSX_FLAG =
84BUILD_FLAG_VSX =
85endif
86
87if HAS_DFP
88BUILD_FLAGS_DFP = -mhard-dfp -mcpu=power6
89DFP_FLAG = -DHAS_DFP
90else
91BUILD_FLAGS_DFP =
92DFP_FLAG =
93endif
94
95if HAS_ISA_2_07
96BUILD_FLAGS_ISA_2_07 = -mcpu=power8
97ISA_2_07_FLAG = -DHAS_ISA_2_07
98else
99BUILD_FLAGS_ISA_2_07 =
100ISA_2_07_FLAG =
101endif
102
103if SUPPORTS_HTM
104HTM_FLAG = -mhtm -DSUPPORTS_HTM
105else
106HTM_FLAG =
107endif
108
109jm_insns_CFLAGS = $(AM_CFLAGS) -Wl,-z,norelro -Winline -Wall -O -g -mregnames \
110			@FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_ALTIVEC)
111
112if HAS_ISA_3_00
113BUILD_FLAGS_ISA_3_00 = -mcpu=power8
114ISA_3_00_FLAG = -DHAS_ISA_3_00
115else
116BUILD_FLAGS_ISA_3_00 =
117ISA_3_00_FLAG =
118endif
119
120test_isa_2_06_part1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
121			@FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
122
123test_isa_2_06_part2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
124			@FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
125
126test_isa_2_06_part3_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
127			@FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
128
129test_dfp1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
130			@FLAG_M64@ $(BUILD_FLAGS_DFP)
131test_dfp2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
132			@FLAG_M64@ $(BUILD_FLAGS_DFP)
133test_dfp3_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
134			@FLAG_M64@ $(BUILD_FLAGS_DFP)
135test_dfp4_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
136			@FLAG_M64@ $(BUILD_FLAGS_DFP)
137test_dfp5_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
138			@FLAG_M64@ $(BUILD_FLAGS_DFP)
139
140test_isa_2_07_part1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(ISA_2_07_FLAG) \
141			@FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
142test_isa_2_07_part2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(ISA_2_07_FLAG) \
143			@FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
144
145test_tm_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(HTM_FLAG) $(ISA_2_07_FLAG) \
146			@FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
147test_touch_tm_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(HTM_FLAG) $(ISA_2_07_FLAG) \
148			@FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
149
150test_isa_3_0_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(HTM_FLAG) $(ISA_3_00_FLAG) \
151			@FLAG_M64@ $(BUILD_FLAGS_ISA_3_00)
152
153test_isa_2_06_part3_LDADD = -lm
154test_dfp1_LDADD = -lm
155test_dfp2_LDADD = -lm
156test_dfp3_LDADD = -lm
157test_dfp4_LDADD = -lm
158test_dfp5_LDADD = -lm
159test_isa_2_07_part1_LDADD = -lm
160test_isa_2_07_part2_LDADD = -lm
161test_tm_LDADD = -lm
162test_touch_tm_LDADD = -lm
163test_isa_3_0_LDADD = -lm
164
165