cerion | cea9ae4 | 2006-01-03 14:08:26 +0000 | [diff] [blame] | 1 | |
njn | 5304457 | 2009-02-19 09:52:05 +0000 | [diff] [blame] | 2 | include $(top_srcdir)/Makefile.tool-tests.am |
| 3 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 4 | dist_noinst_SCRIPTS = filter_stderr |
cerion | cea9ae4 | 2006-01-03 14:08:26 +0000 | [diff] [blame] | 5 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 6 | EXTRA_DIST = \ |
carll | dd690bf | 2014-08-07 23:49:27 +0000 | [diff] [blame] | 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 \ |
sewardj | 6ae0095 | 2011-04-27 11:11:22 +0000 | [diff] [blame] | 10 | jm-vmx.vgtest \ |
carll | 074637e | 2013-09-05 19:50:41 +0000 | [diff] [blame] | 11 | jm-misc.stderr.exp jm-misc.stdout.exp jm-misc.vgtest \ |
sewardj | c075dfc | 2006-02-07 20:58:12 +0000 | [diff] [blame] | 12 | lsw.stderr.exp lsw.stdout.exp lsw.vgtest \ |
carll | dd690bf | 2014-08-07 23:49:27 +0000 | [diff] [blame] | 13 | std_reg_imm.vgtest std_reg_imm.stderr.exp std_reg_imm.stdout.exp std_reg_imm.stdout.exp-LE \ |
carll | ee55dc2 | 2014-08-14 16:54:48 +0000 | [diff] [blame] | 14 | round.stderr.exp round.stdout.exp round.vgtest \ |
sewardj | c485ef2 | 2007-09-01 23:16:49 +0000 | [diff] [blame] | 15 | twi_tdi.stderr.exp twi_tdi.stdout.exp twi_tdi.vgtest \ |
sewardj | 0e342a0 | 2010-09-03 23:49:33 +0000 | [diff] [blame] | 16 | tw_td.stderr.exp tw_td.stdout.exp tw_td.vgtest \ |
mjw | c8df847 | 2013-10-02 13:17:56 +0000 | [diff] [blame] | 17 | opcodes.h \ |
sewardj | 0e342a0 | 2010-09-03 23:49:33 +0000 | [diff] [blame] | 18 | power6_bcmp.stderr.exp power6_bcmp.stdout.exp power6_bcmp.vgtest \ |
sewardj | f34eb49 | 2011-04-15 11:57:05 +0000 | [diff] [blame] | 19 | power6_mf_gpr.stderr.exp power6_mf_gpr.stdout.exp power6_mf_gpr.vgtest \ |
carll | dd690bf | 2014-08-07 23:49:27 +0000 | [diff] [blame] | 20 | 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 \ |
sewardj | 2062dc6 | 2011-09-05 12:15:16 +0000 | [diff] [blame] | 21 | test_isa_2_06_part2.stderr.exp test_isa_2_06_part2.stdout.exp test_isa_2_06_part2.vgtest \ |
sewardj | b0ccb4d | 2012-04-02 10:22:05 +0000 | [diff] [blame] | 22 | test_isa_2_06_part3.stderr.exp test_isa_2_06_part3.stdout.exp test_isa_2_06_part3.vgtest \ |
sewardj | ea8b02f | 2012-04-12 17:28:57 +0000 | [diff] [blame] | 23 | test_dfp1.stderr.exp test_dfp1.stdout.exp test_dfp1.vgtest \ |
| 24 | test_dfp2.stderr.exp test_dfp2.stdout.exp test_dfp2.vgtest \ |
sewardj | 18c72fa | 2012-04-23 11:22:05 +0000 | [diff] [blame] | 25 | test_dfp2.stdout.exp_Without_dcffix \ |
sewardj | 0892b82 | 2012-04-29 20:20:16 +0000 | [diff] [blame] | 26 | test_dfp3.stderr.exp test_dfp3.stdout.exp test_dfp3.vgtest \ |
sewardj | 457cba6 | 2012-06-02 23:48:06 +0000 | [diff] [blame] | 27 | test_dfp4.stderr.exp test_dfp4.stdout.exp test_dfp4.vgtest \ |
carll | dfbf294 | 2013-08-12 18:04:22 +0000 | [diff] [blame] | 28 | 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 \ |
carll | a819259 | 2013-09-10 19:01:00 +0000 | [diff] [blame] | 30 | 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 \ |
carll | 36b4a94 | 2013-10-02 16:28:57 +0000 | [diff] [blame] | 32 | test_isa_2_07_part2.stderr.exp test_isa_2_07_part2.stdout.exp test_isa_2_07_part2.vgtest \ |
carll | f6cd3ff | 2013-10-09 17:56:34 +0000 | [diff] [blame] | 33 | test_tm.stderr.exp test_tm.stdout.exp test_tm.vgtest \ |
carll | fec95c8 | 2014-01-24 16:44:08 +0000 | [diff] [blame] | 34 | test_touch_tm.stderr.exp test_touch_tm.stdout.exp test_touch_tm.vgtest \ |
carll | a1b78a8 | 2014-02-08 02:19:12 +0000 | [diff] [blame] | 35 | 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 |
cerion | cea9ae4 | 2006-01-03 14:08:26 +0000 | [diff] [blame] | 37 | |
| 38 | check_PROGRAMS = \ |
philippe | 2aeaf8e | 2011-12-11 16:29:43 +0000 | [diff] [blame] | 39 | allexec \ |
carll | dfbf294 | 2013-08-12 18:04:22 +0000 | [diff] [blame] | 40 | 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 \ |
carll | 36b4a94 | 2013-10-02 16:28:57 +0000 | [diff] [blame] | 43 | test_dfp5 test_isa_2_07_part1 test_isa_2_07_part2 \ |
carll | a1b78a8 | 2014-02-08 02:19:12 +0000 | [diff] [blame] | 44 | test_tm test_touch_tm ldst_multiple data-cache-instructions |
cerion | cea9ae4 | 2006-01-03 14:08:26 +0000 | [diff] [blame] | 45 | |
njn | c9a6f4b | 2009-04-24 20:17:07 +0000 | [diff] [blame] | 46 | AM_CFLAGS += @FLAG_M64@ |
| 47 | AM_CXXFLAGS += @FLAG_M64@ |
| 48 | AM_CCASFLAGS += @FLAG_M64@ |
cerion | cea9ae4 | 2006-01-03 14:08:26 +0000 | [diff] [blame] | 49 | |
philippe | 2aeaf8e | 2011-12-11 16:29:43 +0000 | [diff] [blame] | 50 | allexec_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@ |
| 51 | |
sewardj | 0e342a0 | 2010-09-03 23:49:33 +0000 | [diff] [blame] | 52 | if HAS_ALTIVEC |
florian | b5b755f | 2014-09-24 22:02:54 +0000 | [diff] [blame] | 53 | BUILD_FLAG_ALTIVEC = -maltivec |
sewardj | 0e342a0 | 2010-09-03 23:49:33 +0000 | [diff] [blame] | 54 | ALTIVEC_FLAG = -DHAS_ALTIVEC |
| 55 | else |
florian | b5b755f | 2014-09-24 22:02:54 +0000 | [diff] [blame] | 56 | BUILD_FLAG_ALTIVEC = |
sewardj | 0e342a0 | 2010-09-03 23:49:33 +0000 | [diff] [blame] | 57 | ALTIVEC_FLAG = |
| 58 | endif |
| 59 | |
sewardj | f34eb49 | 2011-04-15 11:57:05 +0000 | [diff] [blame] | 60 | if HAS_VSX |
| 61 | BUILD_FLAG_VSX = -mvsx |
| 62 | VSX_FLAG = -DHAS_VSX |
| 63 | else |
| 64 | VSX_FLAG = |
| 65 | BUILD_FLAG_VSX = |
| 66 | endif |
| 67 | |
sewardj | b0ccb4d | 2012-04-02 10:22:05 +0000 | [diff] [blame] | 68 | if HAS_DFP |
| 69 | BUILD_FLAGS_DFP = -mhard-dfp -mcpu=power6 |
| 70 | DFP_FLAG = -DHAS_DFP |
| 71 | else |
| 72 | BUILD_FLAGS_DFP = |
| 73 | DFP_FLAG = |
| 74 | endif |
| 75 | |
carll | dfbf294 | 2013-08-12 18:04:22 +0000 | [diff] [blame] | 76 | if HAS_ISA_2_07 |
carll | 40fc342 | 2013-10-02 17:48:48 +0000 | [diff] [blame] | 77 | BUILD_FLAGS_ISA_2_07 = -mhtm -mcpu=power8 |
carll | dfbf294 | 2013-08-12 18:04:22 +0000 | [diff] [blame] | 78 | ISA_2_07_FLAG = -DHAS_ISA_2_07 |
| 79 | else |
| 80 | BUILD_FLAGS_ISA_2_07 = |
| 81 | ISA_2_07_FLAG = |
| 82 | endif |
| 83 | |
sewardj | f34eb49 | 2011-04-15 11:57:05 +0000 | [diff] [blame] | 84 | test_isa_2_06_part1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \ |
| 85 | @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX) |
| 86 | |
sewardj | ab85310 | 2011-07-24 14:20:11 +0000 | [diff] [blame] | 87 | test_isa_2_06_part2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \ |
| 88 | @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX) |
| 89 | |
carll | dd690bf | 2014-08-07 23:49:27 +0000 | [diff] [blame] | 90 | test_isa_2_06_part3_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(VSX_FLAG) \ |
sewardj | 2062dc6 | 2011-09-05 12:15:16 +0000 | [diff] [blame] | 91 | @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_VSX) |
| 92 | |
florian | b5b755f | 2014-09-24 22:02:54 +0000 | [diff] [blame] | 93 | jm_insns_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames \ |
| 94 | @FLAG_M64@ $(ALTIVEC_FLAG) $(BUILD_FLAG_ALTIVEC) |
sewardj | 0e342a0 | 2010-09-03 23:49:33 +0000 | [diff] [blame] | 95 | |
carll | dd690bf | 2014-08-07 23:49:27 +0000 | [diff] [blame] | 96 | test_dfp1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \ |
sewardj | b0ccb4d | 2012-04-02 10:22:05 +0000 | [diff] [blame] | 97 | @FLAG_M64@ $(BUILD_FLAGS_DFP) |
sewardj | 18c72fa | 2012-04-23 11:22:05 +0000 | [diff] [blame] | 98 | |
carll | dd690bf | 2014-08-07 23:49:27 +0000 | [diff] [blame] | 99 | test_dfp2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \ |
sewardj | ea8b02f | 2012-04-12 17:28:57 +0000 | [diff] [blame] | 100 | @FLAG_M64@ $(BUILD_FLAGS_DFP) |
carll | dd690bf | 2014-08-07 23:49:27 +0000 | [diff] [blame] | 101 | test_dfp3_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \ |
sewardj | 18c72fa | 2012-04-23 11:22:05 +0000 | [diff] [blame] | 102 | @FLAG_M64@ $(BUILD_FLAGS_DFP) |
sewardj | 0892b82 | 2012-04-29 20:20:16 +0000 | [diff] [blame] | 103 | |
carll | dd690bf | 2014-08-07 23:49:27 +0000 | [diff] [blame] | 104 | test_dfp4_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \ |
sewardj | 0892b82 | 2012-04-29 20:20:16 +0000 | [diff] [blame] | 105 | @FLAG_M64@ $(BUILD_FLAGS_DFP) |
sewardj | 457cba6 | 2012-06-02 23:48:06 +0000 | [diff] [blame] | 106 | |
carll | dd690bf | 2014-08-07 23:49:27 +0000 | [diff] [blame] | 107 | test_dfp5_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(DFP_FLAG) \ |
sewardj | 457cba6 | 2012-06-02 23:48:06 +0000 | [diff] [blame] | 108 | @FLAG_M64@ $(BUILD_FLAGS_DFP) |
| 109 | |
carll | dd690bf | 2014-08-07 23:49:27 +0000 | [diff] [blame] | 110 | test_isa_2_07_part1_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(ISA_2_07_FLAG) \ |
carll | dfbf294 | 2013-08-12 18:04:22 +0000 | [diff] [blame] | 111 | @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07) |
| 112 | |
carll | dd690bf | 2014-08-07 23:49:27 +0000 | [diff] [blame] | 113 | test_isa_2_07_part2_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(ISA_2_07_FLAG) \ |
carll | dfbf294 | 2013-08-12 18:04:22 +0000 | [diff] [blame] | 114 | @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07) |
carll | 36b4a94 | 2013-10-02 16:28:57 +0000 | [diff] [blame] | 115 | |
carll | dd690bf | 2014-08-07 23:49:27 +0000 | [diff] [blame] | 116 | test_tm_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(ISA_2_07_FLAG) \ |
carll | 36b4a94 | 2013-10-02 16:28:57 +0000 | [diff] [blame] | 117 | @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07) |
carll | dd690bf | 2014-08-07 23:49:27 +0000 | [diff] [blame] | 118 | test_touch_tm_CFLAGS = $(AM_CFLAGS) -Winline -Wall -O -g -mregnames $(ISA_2_07_FLAG) \ |
carll | f6cd3ff | 2013-10-09 17:56:34 +0000 | [diff] [blame] | 119 | @FLAG_M64@ $(BUILD_FLAGS_ISA_2_07) |
carll | dd690bf | 2014-08-07 23:49:27 +0000 | [diff] [blame] | 120 | |
| 121 | test_isa_2_06_part3_LDADD = -lm |
| 122 | test_dfp1_LDADD = -lm |
| 123 | test_dfp2_LDADD = -lm |
| 124 | test_dfp3_LDADD = -lm |
| 125 | test_dfp4_LDADD = -lm |
| 126 | test_dfp5_LDADD = -lm |
| 127 | test_isa_2_07_part1_LDADD = -lm |
| 128 | test_isa_2_07_part2_LDADD = -lm |
| 129 | test_tm_LDADD = -lm |
| 130 | test_touch_tm_LDADD = -lm |
| 131 | |