@@ -2678,45 +2678,6 @@ esac
2678
2678
] )
2679
2679
2680
2680
2681
- dnl GMP_ASM_X86_ADX([ ACTION-IF-YES] [ ,ACTION-IF-NO] )
2682
- dnl ------------------------------------------------
2683
- dnl Determine whether the assembler supports the adcx and adox instructions
2684
- dnl which debut with the Haswell shrink Broadwell.
2685
- dnl
2686
- dnl This macro is wanted before GMP_ASM_TEXT, so ".text" is hard coded
2687
- dnl here. ".text" is believed to be correct on all x86 systems, certainly
2688
- dnl it's all GMP_ASM_TEXT gives currently. Actually ".text" probably isn't
2689
- dnl needed at all, at least for just checking instruction syntax.
2690
-
2691
- AC_DEFUN ( [ GMP_ASM_X86_ADX] ,
2692
- [ AC_CACHE_CHECK ( [ if the assembler knows about the adox instruction] ,
2693
- gmp_cv_asm_x86_adx ,
2694
- [ GMP_TRY_ASSEMBLE(
2695
- [ .text
2696
- adox %r8, %r9
2697
- adcx %r8, %r9] ,
2698
- [ gmp_cv_asm_x86_adx=yes] ,
2699
- [ gmp_cv_asm_x86_adx=no] )
2700
- ] )
2701
- case $gmp_cv_asm_x86_adx in
2702
- yes)
2703
- ifelse ( [ $1 ] ,,: ,[ $1 ] )
2704
- ;;
2705
- *)
2706
- AC_MSG_WARN ( [ +----------------------------------------------------------] )
2707
- AC_MSG_WARN ( [ | WARNING WARNING WARNING] )
2708
- AC_MSG_WARN ( [ | Host CPU has the adcx and adox instructions, but they] )
2709
- AC_MSG_WARN ( [ | can't be assembled by] )
2710
- AC_MSG_WARN ( [ | $CCAS $CFLAGS $CPPFLAGS] )
2711
- AC_MSG_WARN ( [ | Older x86 instructions will be used.] )
2712
- AC_MSG_WARN ( [ | This will be an inferior build.] )
2713
- AC_MSG_WARN ( [ +----------------------------------------------------------] )
2714
- ifelse ( [ $2 ] ,,: ,[ $2 ] )
2715
- ;;
2716
- esac
2717
- ] )
2718
-
2719
-
2720
2681
dnl GMP_ASM_X86_MCOUNT
2721
2682
dnl ------------------
2722
2683
dnl Find out how to call mcount for profiling on an x86 system.
0 commit comments