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