blob: 68baacf3f430703e7f3e48cd5d2508fe52480319 [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 = \
carlldd690bf2014-08-07 23:49:27 +00007 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 \
sewardj6ae00952011-04-27 11:11:22 +000010 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 \
carlldd690bf2014-08-07 23:49:27 +000013 std_reg_imm.vgtest std_reg_imm.stderr.exp std_reg_imm.stdout.exp std_reg_imm.stdout.exp-LE \
carllee55dc22014-08-14 16:54:48 +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 \
carlldd690bf2014-08-07 23:49:27 +000020 test_isa_2_06_part1.stderr.exp test_isa_2_06_part1.stdout.exp test_isa_2_06_part1.vgtest test_isa_2_06_part1.stdout.exp-LE \
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
florianb5b755f2014-09-24 22:02:54 +000053BUILD_FLAG_ALTIVEC = -maltivec
sewardj0e342a02010-09-03 23:49:33 +000054ALTIVEC_FLAG = -DHAS_ALTIVEC
55else
florianb5b755f2014-09-24 22:02:54 +000056BUILD_FLAG_ALTIVEC =
sewardj0e342a02010-09-03 23:49:33 +000057ALTIVEC_FLAG =
58endif
59
sewardjf34eb492011-04-15 11:57:05 +000060if HAS_VSX
61BUILD_FLAG_VSX = -mvsx
62VSX_FLAG = -DHAS_VSX
63else
64VSX_FLAG =
65BUILD_FLAG_VSX =
66endif
67
sewardjb0ccb4d2012-04-02 10:22:05 +000068if HAS_DFP
69BUILD_FLAGS_DFP = -mhard-dfp -mcpu=power6
70DFP_FLAG = -DHAS_DFP
71else
72BUILD_FLAGS_DFP =
73DFP_FLAG =
74endif
75
carlldfbf2942013-08-12 18:04:22 +000076if HAS_ISA_2_07
carll40fc3422013-10-02 17:48:48 +000077BUILD_FLAGS_ISA_2_07 = -mhtm -mcpu=power8
carlldfbf2942013-08-12 18:04:22 +000078ISA_2_07_FLAG = -DHAS_ISA_2_07
79else
80BUILD_FLAGS_ISA_2_07 =
81ISA_2_07_FLAG =
82endif
83
sewardjf34eb492011-04-15 11:57:05 +000084test_isa_2_06_part1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
85 @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
86
sewardjab853102011-07-24 14:20:11 +000087test_isa_2_06_part2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
88 @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
89
carlldd690bf2014-08-07 23:49:27 +000090test_isa_2_06_part3_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \
sewardj2062dc62011-09-05 12:15:16 +000091 @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX)
92
florianb5b755f2014-09-24 22:02:54 +000093jm_insns_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames \
94 @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_ALTIVEC)
sewardj0e342a02010-09-03 23:49:33 +000095
carlldd690bf2014-08-07 23:49:27 +000096test_dfp1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
sewardjb0ccb4d2012-04-02 10:22:05 +000097 @FLAG_M64@ $(BUILD_FLAGS_DFP)
sewardj18c72fa2012-04-23 11:22:05 +000098
carlldd690bf2014-08-07 23:49:27 +000099test_dfp2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
sewardjea8b02f2012-04-12 17:28:57 +0000100 @FLAG_M64@ $(BUILD_FLAGS_DFP)
carlldd690bf2014-08-07 23:49:27 +0000101test_dfp3_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
sewardj18c72fa2012-04-23 11:22:05 +0000102 @FLAG_M64@ $(BUILD_FLAGS_DFP)
sewardj0892b822012-04-29 20:20:16 +0000103
carlldd690bf2014-08-07 23:49:27 +0000104test_dfp4_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
sewardj0892b822012-04-29 20:20:16 +0000105 @FLAG_M64@ $(BUILD_FLAGS_DFP)
sewardj457cba62012-06-02 23:48:06 +0000106
carlldd690bf2014-08-07 23:49:27 +0000107test_dfp5_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \
sewardj457cba62012-06-02 23:48:06 +0000108 @FLAG_M64@ $(BUILD_FLAGS_DFP)
109
carlldd690bf2014-08-07 23:49:27 +0000110test_isa_2_07_part1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(ISA_2_07_FLAG) \
carlldfbf2942013-08-12 18:04:22 +0000111 @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
112
carlldd690bf2014-08-07 23:49:27 +0000113test_isa_2_07_part2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(ISA_2_07_FLAG) \
carlldfbf2942013-08-12 18:04:22 +0000114 @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
carll36b4a942013-10-02 16:28:57 +0000115
carlldd690bf2014-08-07 23:49:27 +0000116test_tm_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(ISA_2_07_FLAG) \
carll36b4a942013-10-02 16:28:57 +0000117 @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
carlldd690bf2014-08-07 23:49:27 +0000118test_touch_tm_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(ISA_2_07_FLAG) \
carllf6cd3ff2013-10-09 17:56:34 +0000119 @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07)
carlldd690bf2014-08-07 23:49:27 +0000120
121test_isa_2_06_part3_LDADD = -lm
122test_dfp1_LDADD = -lm
123test_dfp2_LDADD = -lm
124test_dfp3_LDADD = -lm
125test_dfp4_LDADD = -lm
126test_dfp5_LDADD = -lm
127test_isa_2_07_part1_LDADD = -lm
128test_isa_2_07_part2_LDADD = -lm
129test_tm_LDADD = -lm
130test_touch_tm_LDADD = -lm
131