2 # Utility script to generate the intrinsics files.
3 # This is useful for verifying changes to the generated files.
5 # Usage: gen-all-intrinsics /path/to/gcc/top [extra args]
7 # Run this script in the src/cgen directory.
9 # NOTE: The various command line arguments depend on which mep cores
16 echo "Usage: gen-all-intrinsics /path/to/gcc/top [extra args]" >&2
21 if [ ! -d ${GCC_TOP}/gcc/config/mep ]
23 echo "Not a gcc top level directory: $GCC_TOP" >&2
28 cd ${GCC_TOP}/gcc/config/mep
29 guile -s ${CGEN_TOP}/cgen-intrinsics.scm -s ${CGEN_TOP} \
30 -a ${CGEN_TOP}/cpu/mep.cpu \
32 -i mep,ext_core1,ext_cop1_16,ext_cop1_32,ext_cop1_48,ext_cop1_64 \
33 -K mep,ext_core1,ext_cop1_16,ext_cop1_32,ext_cop1_48,ext_cop1_64 \
34 -M intrinsics.md -N mep-intrin.h -P intrinsics.h \