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