Revert accidentially added changes in commit ce094ba912
[valgrind.git] / none / tests / ppc64 / Makefile.am
blob9bc0d0a76422241d07da3927a4108a8144deab99
2 include $(top_srcdir)/Makefile.tool-tests.am
4 dist_noinst_SCRIPTS = filter_stderr
6 noinst_HEADERS = ppc64_helpers.h
8 EXTRA_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  \
49         test_isa_3_0_altivec.stdout.exp-LE test_isa_3_0_altivec.vgtest \
50         test_isa_3_0_other.stderr.exp  \
51         test_isa_3_0_other.stdout.exp-LE test_isa_3_0_other.vgtest \
52         subnormal_test.stderr.exp  subnormal_test.stdout.exp \
53         subnormal_test.vgtest
55 check_PROGRAMS = \
56         allexec \
57         lsw jm-insns round \
58         test_isa_2_06_part1 test_isa_2_06_part2 test_isa_2_06_part3 \
59         test_dfp1 test_dfp2 test_dfp3 test_dfp4 test_dfp5 \
60         test_isa_2_07_part1 test_isa_2_07_part2 \
61         test_isa_3_0 \
62         subnormal_test \
63         test_tm test_touch_tm ldst_multiple data-cache-instructions \
64         power6_mf_gpr std_reg_imm \
65         twi_tdi tw_td power6_bcmp
68 AM_CFLAGS    += @FLAG_M64@
69 AM_CXXFLAGS  += @FLAG_M64@
70 AM_CCASFLAGS += @FLAG_M64@
72 allexec_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
74 if HAS_ALTIVEC
75 BUILD_FLAG_ALTIVEC = -maltivec
76 ALTIVEC_FLAG = -DHAS_ALTIVEC
77 else
78 BUILD_FLAG_ALTIVEC =
79 ALTIVEC_FLAG =
80 endif
82 if HAS_VSX
83 BUILD_FLAG_VSX = -mvsx
84 VSX_FLAG = -DHAS_VSX
85 else
86 VSX_FLAG =
87 BUILD_FLAG_VSX =
88 endif
90 if HAS_DFP
91 BUILD_FLAGS_DFP = -mhard-dfp -mcpu=power6
92 DFP_FLAG = -DHAS_DFP
93 else
94 BUILD_FLAGS_DFP =
95 DFP_FLAG =
96 endif
98 if HAS_ISA_2_06
99 BUILD_FLAGS_ISA_2_06 = -mcpu=power7
100 ISA_2_06_FLAG = -DHAS_ISA_2_06
101 else
102 BUILD_FLAGS_ISA_2_06 =
103 ISA_2_06_FLAG =
104 endif
106 if HAS_ISA_2_07
107 BUILD_FLAGS_ISA_2_07 = -mcpu=power8
108 ISA_2_07_FLAG = -DHAS_ISA_2_07
109 else
110 BUILD_FLAGS_ISA_2_07 =
111 ISA_2_07_FLAG =
112 endif
114 if SUPPORTS_HTM
115 HTM_FLAG = -mhtm -DSUPPORTS_HTM
116 else
117 HTM_FLAG =
118 endif
120 jm_insns_CFLAGS = $(AM_CFLAGS) -Wl,-z,norelro -Winline -Wall -O -g -mregnames \
121                         @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_ALTIVEC)
123 if HAS_ISA_3_00
124 BUILD_FLAGS_ISA_3_00 = -mcpu=power8
125 ISA_3_00_FLAG = -DHAS_ISA_3_00
126 else
127 BUILD_FLAGS_ISA_3_00 =
128 ISA_3_00_FLAG =
129 endif
131 test_isa_2_06_part1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
132                         @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
134 test_isa_2_06_part2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
135                         @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
137 test_isa_2_06_part3_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
138                         @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
140 test_dfp1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
141                         @FLAG_M64@ $(BUILD_FLAGS_DFP)
142 test_dfp2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
143                         @FLAG_M64@ $(BUILD_FLAGS_DFP)
144 test_dfp3_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
145                         @FLAG_M64@ $(BUILD_FLAGS_DFP)
146 test_dfp4_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
147                         @FLAG_M64@ $(BUILD_FLAGS_DFP)
148 test_dfp5_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
149                         @FLAG_M64@ $(BUILD_FLAGS_DFP)
151 test_isa_2_07_part1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(ISA_2_07_FLAG) \
152                         @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
153 test_isa_2_07_part2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(ISA_2_07_FLAG) \
154                         @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
156 test_tm_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(HTM_FLAG) $(ISA_2_07_FLAG) \
157                         @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
158 test_touch_tm_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(HTM_FLAG) $(ISA_2_07_FLAG) \
159                         @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
161 test_isa_3_0_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(HTM_FLAG) $(ISA_3_00_FLAG) \
162                         @FLAG_M64@ $(BUILD_FLAGS_ISA_3_00)
164 subnormal_test_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) $(ISA_2_06_FLAG) \
165                         @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX) $(BUILD_FLAGS_ISA_2_06)
167 test_isa_2_06_part3_LDADD = -lm
168 test_dfp1_LDADD = -lm
169 test_dfp2_LDADD = -lm
170 test_dfp3_LDADD = -lm
171 test_dfp4_LDADD = -lm
172 test_dfp5_LDADD = -lm
173 test_isa_2_07_part1_LDADD = -lm
174 test_isa_2_07_part2_LDADD = -lm
175 test_tm_LDADD = -lm
176 test_touch_tm_LDADD = -lm
177 test_isa_3_0_LDADD = -lm