URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-binutils/] [binutils-2.19.1/] [cgen/] [gen-all-intrinsics] - Rev 26
Go to most recent revision | Compare with Previous | Blame | View Log
#! /bin/sh
# Utility script to generate the intrinsics files.
# This is useful for verifying changes to the generated files.
#
# Usage: gen-all-intrinsics /path/to/gcc/top [extra args]
#
# Run this script in the src/cgen directory.
#
# NOTE: The various command line arguments depend on which mep cores
# you're targetting.
CGEN_TOP=`pwd`
if [ $# -lt 1 ]
then
echo "Usage: gen-all-intrinsics /path/to/gcc/top [extra args]" >&2
exit 1
fi
GCC_TOP=$1 ; shift
if [ ! -d ${GCC_TOP}/gcc/config/mep ]
then
echo "Not a gcc top level directory: $GCC_TOP" >&2
exit 1
fi
(
cd ${GCC_TOP}/gcc/config/mep
guile -s ${CGEN_TOP}/cgen-intrinsics.scm -s ${CGEN_TOP} \
-a ${CGEN_TOP}/cpu/mep.cpu \
-m mep,c5 \
-i mep,ext_core1,ext_cop1_16,ext_cop1_32,ext_cop1_48,ext_cop1_64 \
-K mep,ext_core1,ext_cop1_16,ext_cop1_32,ext_cop1_48,ext_cop1_64 \
-M intrinsics.md -N mep-intrin.h -P intrinsics.h \
-b \
"$@"
)
Go to most recent revision | Compare with Previous | Blame | View Log