blob: 20a2ebb3df5d89dbe54d12222de9ed65683b9b84 [file] [log] [blame]
cerioncea9ae42006-01-03 14:08:26 +00001
njn53044572009-02-19 09:52:05 +00002include $(top_srcdir)/Makefile.tool-tests.am
3
njn8b68b642009-06-24 00:37:09 +00004dist_noinst_SCRIPTS = filter_stderr
cerioncea9ae42006-01-03 14:08:26 +00005
njn8b68b642009-06-24 00:37:09 +00006EXTRA_DIST = \
cerioncea9ae42006-01-03 14:08:26 +00007 jm-int.stderr.exp jm-int.stdout.exp jm-int.vgtest \
8 jm-fp.stderr.exp jm-fp.stdout.exp jm-fp.vgtest \
sewardj6ae00952011-04-27 11:11:22 +00009 jm-vmx.stderr.exp jm-vmx.stdout.exp jm-vmx.stdout.exp_Minus_nan \
10 jm-vmx.vgtest \
carll074637e2013-09-05 19:50:41 +000011 jm-misc.stderr.exp jm-misc.stdout.exp jm-misc.vgtest \
sewardjc075dfc2006-02-07 20:58:12 +000012 lsw.stderr.exp lsw.stdout.exp lsw.vgtest \
sewardjde21b952007-03-12 02:10:23 +000013 std_reg_imm.vgtest std_reg_imm.stderr.exp std_reg_imm.stdout.exp \
sewardja0d693b2006-04-16 00:13:22 +000014 round.stderr.exp round.stdout.exp round.vgtest \
sewardjc485ef22007-09-01 23:16:49 +000015 twi_tdi.stderr.exp twi_tdi.stdout.exp twi_tdi.vgtest \
sewardj0e342a02010-09-03 23:49:33 +000016 tw_td.stderr.exp tw_td.stdout.exp tw_td.vgtest \
mjwc8df8472013-10-02 13:17:56 +000017 opcodes.h \
sewardj0e342a02010-09-03 23:49:33 +000018 power6_bcmp.stderr.exp power6_bcmp.stdout.exp power6_bcmp.vgtest \
sewardjf34eb492011-04-15 11:57:05 +000019 power6_mf_gpr.stderr.exp power6_mf_gpr.stdout.exp power6_mf_gpr.vgtest \
sewardjab853102011-07-24 14:20:11 +000020 test_isa_2_06_part1.stderr.exp test_isa_2_06_part1.stdout.exp test_isa_2_06_part1.vgtest \
sewardj2062dc62011-09-05 12:15:16 +000021 test_isa_2_06_part2.stderr.exp test_isa_2_06_part2.stdout.exp test_isa_2_06_part2.vgtest \
sewardjb0ccb4d2012-04-02 10:22:05 +000022 test_isa_2_06_part3.stderr.exp test_isa_2_06_part3.stdout.exp test_isa_2_06_part3.vgtest \
sewardjea8b02f2012-04-12 17:28:57 +000023 test_dfp1.stderr.exp test_dfp1.stdout.exp test_dfp1.vgtest \
24 test_dfp2.stderr.exp test_dfp2.stdout.exp test_dfp2.vgtest \
sewardj18c72fa2012-04-23 11:22:05 +000025 test_dfp2.stdout.exp_Without_dcffix \
sewardj0892b822012-04-29 20:20:16 +000026 test_dfp3.stderr.exp test_dfp3.stdout.exp test_dfp3.vgtest \
sewardj457cba62012-06-02 23:48:06 +000027 test_dfp4.stderr.exp test_dfp4.stdout.exp test_dfp4.vgtest \
carlldfbf2942013-08-12 18:04:22 +000028 test_dfp5.stderr.exp test_dfp5.stdout.exp test_dfp5.vgtest \
29 jm_vec_isa_2_07.stderr.exp jm_vec_isa_2_07.stdout.exp jm_vec_isa_2_07.vgtest \
carlla8192592013-09-10 19:01:00 +000030 jm_fp_isa_2_07.stderr.exp jm_fp_isa_2_07.stdout.exp jm_fp_isa_2_07.vgtest \
31 jm_int_isa_2_07.stderr.exp jm_int_isa_2_07.stdout.exp jm_int_isa_2_07.vgtest \
carll36b4a942013-10-02 16:28:57 +000032 test_isa_2_07_part2.stderr.exp test_isa_2_07_part2.stdout.exp test_isa_2_07_part2.vgtest \
carllf6cd3ff2013-10-09 17:56:34 +000033 test_tm.stderr.exp test_tm.stdout.exp test_tm.vgtest \
carllfec95c82014-01-24 16:44:08 +000034 test_touch_tm.stderr.exp test_touch_tm.stdout.exp test_touch_tm.vgtest \
carlla1b78a82014-02-08 02:19:12 +000035 ldst_multiple.stderr.exp ldst_multiple.stdout.exp ldst_multiple.vgtest \
36 data-cache-instructions.stderr.exp data-cache-instructions.stdout.exp data-cache-instructions.vgtest
cerioncea9ae42006-01-03 14:08:26 +000037
38check_PROGRAMS = \
philippe2aeaf8e2011-12-11 16:29:43 +000039 allexec \
carlldfbf2942013-08-12 18:04:22 +000040 jm-insns lsw round std_reg_imm twi_tdi tw_td power6_bcmp \
41 power6_mf_gpr test_isa_2_06_part1 test_isa_2_06_part2 \
42 test_isa_2_06_part3 test_dfp1 test_dfp2 test_dfp3 test_dfp4 \
carll36b4a942013-10-02 16:28:57 +000043 test_dfp5 test_isa_2_07_part1 test_isa_2_07_part2 \
carlla1b78a82014-02-08 02:19:12 +000044 test_tm test_touch_tm ldst_multiple data-cache-instructions
cerioncea9ae42006-01-03 14:08:26 +000045
njnc9a6f4b2009-04-24 20:17:07 +000046AM_CFLAGS += @FLAG_M64@
47AM_CXXFLAGS += @FLAG_M64@
48AM_CCASFLAGS += @FLAG_M64@
cerioncea9ae42006-01-03 14:08:26 +000049
philippe2aeaf8e2011-12-11 16:29:43 +000050allexec_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
51
sewardj0e342a02010-09-03 23:49:33 +000052if HAS_ALTIVEC
53ALTIVEC_FLAG = -DHAS_ALTIVEC
54else
55ALTIVEC_FLAG =
56endif
57
sewardjf34eb492011-04-15 11:57:05 +000058if HAS_VSX
59BUILD_FLAG_VSX = -mvsx
60VSX_FLAG = -DHAS_VSX
61else
62VSX_FLAG =
63BUILD_FLAG_VSX =
64endif
65
sewardjb0ccb4d2012-04-02 10:22:05 +000066if HAS_DFP
67BUILD_FLAGS_DFP = -mhard-dfp -mcpu=power6
68DFP_FLAG = -DHAS_DFP
69else
70BUILD_FLAGS_DFP =
71DFP_FLAG =
72endif
73
carlldfbf2942013-08-12 18:04:22 +000074if HAS_ISA_2_07
carll40fc3422013-10-02 17:48:48 +000075BUILD_FLAGS_ISA_2_07 = -mhtm -mcpu=power8
carlldfbf2942013-08-12 18:04:22 +000076ISA_2_07_FLAG = -DHAS_ISA_2_07
77else
78BUILD_FLAGS_ISA_2_07 =
79ISA_2_07_FLAG =
80endif
81
sewardjf34eb492011-04-15 11:57:05 +000082test_isa_2_06_part1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
83 @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
84
sewardjab853102011-07-24 14:20:11 +000085test_isa_2_06_part2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
86 @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
87
sewardj2062dc62011-09-05 12:15:16 +000088test_isa_2_06_part3_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(VSX_FLAG) \
89 @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
90
sewardj0e342a02010-09-03 23:49:33 +000091jm_insns_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames -maltivec \
92 @FLAG_M64@ $(ALTIVEC_FLAG)
93
sewardjb0ccb4d2012-04-02 10:22:05 +000094test_dfp1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(DFP_FLAG) \
95 @FLAG_M64@ $(BUILD_FLAGS_DFP)
sewardj18c72fa2012-04-23 11:22:05 +000096
sewardjea8b02f2012-04-12 17:28:57 +000097test_dfp2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(DFP_FLAG) \
98 @FLAG_M64@ $(BUILD_FLAGS_DFP)
sewardj18c72fa2012-04-23 11:22:05 +000099test_dfp3_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(DFP_FLAG) \
100 @FLAG_M64@ $(BUILD_FLAGS_DFP)
sewardj0892b822012-04-29 20:20:16 +0000101
102test_dfp4_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(DFP_FLAG) \
103 @FLAG_M64@ $(BUILD_FLAGS_DFP)
sewardj457cba62012-06-02 23:48:06 +0000104
105test_dfp5_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(DFP_FLAG) \
106 @FLAG_M64@ $(BUILD_FLAGS_DFP)
107
carlldfbf2942013-08-12 18:04:22 +0000108test_isa_2_07_part1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(ISA_2_07_FLAG) \
109 @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
110
111test_isa_2_07_part2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(ISA_2_07_FLAG) \
112 @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
carll36b4a942013-10-02 16:28:57 +0000113
carll40fc3422013-10-02 17:48:48 +0000114test_tm_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(ISA_2_07_FLAG) \
carll36b4a942013-10-02 16:28:57 +0000115 @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
carllf6cd3ff2013-10-09 17:56:34 +0000116test_touch_tm_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -lm -g -mregnames $(ISA_2_07_FLAG) \
117 @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)