Home | History | Annotate | Line # | Download | only in c6x
      1   1.1  mrg #! /bin/sh
      2   1.1  mrg # Generate c6x-sched.md from c6x-sched.md.in
      3   1.1  mrg # The input file is passed as an argument.
      4   1.1  mrg 
      5  1.10  mrg # Copyright (C) 2010-2022 Free Software Foundation, Inc.
      6   1.1  mrg 
      7   1.1  mrg #This file is part of GCC.
      8   1.1  mrg 
      9   1.1  mrg #GCC is free software; you can redistribute it and/or modify
     10   1.1  mrg #it under the terms of the GNU General Public License as published by
     11   1.1  mrg #the Free Software Foundation; either version 3, or (at your option)
     12   1.1  mrg #any later version.
     13   1.1  mrg 
     14   1.1  mrg #GCC is distributed in the hope that it will be useful,
     15   1.1  mrg #but WITHOUT ANY WARRANTY; without even the implied warranty of
     16   1.1  mrg #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     17   1.1  mrg #GNU General Public License for more details.
     18   1.1  mrg 
     19   1.1  mrg #You should have received a copy of the GNU General Public License
     20   1.1  mrg #along with GCC; see the file COPYING3.  If not see
     21   1.1  mrg #<http://www.gnu.org/licenses/>.
     22   1.1  mrg 
     23   1.1  mrg echo ";; -*- buffer-read-only: t -*-"
     24   1.1  mrg echo ";; Generated automatically from c6x-sched.md.in by gensched.sh"
     25   1.1  mrg 
     26   1.1  mrg for cross in n y; do
     27   1.1  mrg     for side in 1 2; do
     28   1.1  mrg 	tside=$side
     29   1.1  mrg 	case $side in
     30   1.1  mrg 	    1) rf="a"; otherside=2 ;;
     31   1.1  mrg 	    2) rf="b"; otherside=1 ;;
     32   1.1  mrg 	esac
     33   1.1  mrg 	case $cross in
     34   1.1  mrg 	    y) cunit="+x$side"; tside=$otherside;;
     35   1.1  mrg 	    n) cunit="";;
     36   1.1  mrg 	esac
     37   1.1  mrg 	echo
     38   1.1  mrg 	echo ";; Definitions for side $side, cross $cross"
     39   1.1  mrg 	echo
     40   1.1  mrg 	sed -e "s,_CROSS_,$cross,g" -e "s,_CUNIT_,$cunit,g" \
     41   1.1  mrg 	    -e "s,_N_,$side,g" -e "s,_RF_,$rf,g" -e "s,_NX_,$tside,g" \
     42   1.1  mrg 	    < $1
     43   1.1  mrg     done
     44   1.1  mrg done
     45