aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/sh/shmedia.md
AgeCommit message (Collapse)AuthorFilesLines
2016-01-04Update copyright years.Jakub Jelinek1-1/+1
From-SVN: r232055
2015-01-05Update copyright years.Jakub Jelinek1-1/+1
From-SVN: r219188
2014-01-02Update copyright years in gcc/Richard Sandiford1-1/+1
From-SVN: r206289
2013-01-10Update copyright years in gcc/Richard Sandiford1-1/+1
From-SVN: r195098
2007-08-02host-hpux.c: Change copyright header to refer to version 3 of the GNU ↵Nick Clifton1-5/+4
General Public License... * config/host-hpux.c: Change copyright header to refer to version 3 of the GNU General Public License and to point readers at the COPYING3 file and the FSF's license web page. * config/alpha/predicates.md, config/alpha/vms-ld.c, config/alpha/linux.h, config/alpha/alpha.opt, config/alpha/linux-elf.h, config/alpha/vms.h, config/alpha/elf.h, config/alpha/vms-unwind.h, config/alpha/ev4.md, config/alpha/ev6.md, config/alpha/alpha.c, config/alpha/vms-cc.c, config/alpha/alpha.h, config/alpha/sync.md, config/alpha/openbsd.h, config/alpha/alpha.md, config/alpha/alpha-modes.def, config/alpha/ev5.md, config/alpha/alpha-protos.h, config/alpha/freebsd.h, config/alpha/osf5.h, config/alpha/netbsd.h, config/alpha/vms64.h, config/alpha/constraints.md, config/alpha/osf.h, config/alpha/xm-vms.h, config/alpha/unicosmk.h, config/linux.h, config/frv/predicates.md, config/frv/frv.h, config/frv/linux.h, config/frv/frv.md, config/frv/frv.opt, config/frv/frv-modes.def, config/frv/frv-asm.h, config/frv/frv-protos.h, config/frv/frv-abi.h, config/frv/frv.c, config/s390/tpf.h, config/s390/s390.c, config/s390/predicates.md, config/s390/s390.h, config/s390/linux.h, config/s390/tpf.md, config/s390/tpf.opt, config/s390/2064.md, config/s390/2084.md, config/s390/s390.md, config/s390/s390.opt, config/s390/s390-modes.def, config/s390/fixdfdi.h, config/s390/constraints.md, config/s390/s390-protos.h, config/s390/s390x.h, config/elfos.h, config/dbxcoff.h, config/m32c/predicates.md, config/m32c/cond.md, config/m32c/m32c.c, config/m32c/minmax.md, config/m32c/blkmov.md, config/m32c/m32c-pragma.c, config/m32c/m32c.h, config/m32c/prologue.md, config/m32c/m32c.abi, config/m32c/muldiv.md, config/m32c/bitops.md, config/m32c/mov.md, config/m32c/addsub.md, config/m32c/m32c.md, config/m32c/m32c.opt, config/m32c/t-m32c, config/m32c/m32c-modes.def, config/m32c/jump.md, config/m32c/shift.md, config/m32c/m32c-protos.h, config/libgloss.h, config/spu/spu-protos.h, config/spu/predicates.md, config/spu/spu-builtins.h, config/spu/spu.c, config/spu/spu-builtins.def, config/spu/spu-builtins.md, config/spu/spu.h, config/spu/spu-elf.h, config/spu/constraints.md, config/spu/spu.md, config/spu/spu-c.c, config/spu/spu.opt, config/spu/spu-modes.def, config/spu/t-spu-elf, config/interix.h, config/sparc/hypersparc.md, config/sparc/predicates.md, config/sparc/linux.h, config/sparc/sp64-elf.h, config/sparc/supersparc.md, config/sparc/cypress.md, config/sparc/openbsd1-64.h, config/sparc/openbsd64.h, config/sparc/niagara.md, config/sparc/sparc.md, config/sparc/long-double-switch.opt, config/sparc/ultra3.md, config/sparc/sparc.opt, config/sparc/sync.md, config/sparc/sp-elf.h, config/sparc/sparc-protos.h, config/sparc/ultra1_2.md, config/sparc/biarch64.h, config/sparc/sparc.c, config/sparc/little-endian.opt, config/sparc/sysv4-only.h, config/sparc/sparc.h, config/sparc/linux64.h, config/sparc/freebsd.h, config/sparc/sol2.h, config/sparc/rtemself.h, config/sparc/netbsd-elf.h, config/sparc/vxworks.h, config/sparc/sparc-modes.def, config/sparc/sparclet.md, config/sparc/sysv4.h, config/vx-common.h, config/netbsd-aout.h, config/flat.h, config/m32r/m32r.md, config/m32r/predicates.md, config/m32r/little.h, config/m32r/m32r.c, config/m32r/m32r.opt, config/m32r/linux.h, config/m32r/constraints.md, config/m32r/m32r.h, config/m32r/m32r-protos.h, config/vxworks.opt, config/darwin-c.c, config/darwin.opt, config/i386/i386.h, config/i386/cygming.h, config/i386/linux.h, config/i386/cygwin.h, config/i386/i386.md, config/i386/netware-crt0.c, config/i386/sco5.h, config/i386/mmx.md, config/i386/vx-common.h, config/i386/kaos-i386.h, config/i386/winnt-stubs.c, config/i386/netbsd64.h, config/i386/djgpp.h, config/i386/gas.h, config/i386/sol2.h, config/i386/constraints.md, config/i386/netware-libgcc.c, config/i386/sysv5.h, config/i386/predicates.md, config/i386/geode.md, config/i386/x86-64.h, config/i386/kfreebsd-gnu.h, config/i386/freebsd64.h, config/i386/vxworksae.h, config/i386/pentium.md, config/i386/lynx.h, config/i386/i386elf.h, config/i386/rtemself.h, config/i386/netbsd-elf.h, config/i386/ppro.md, config/i386/k6.md, config/i386/netware.c, config/i386/netware.h, config/i386/i386-modes.def, config/i386/sysv4-cpp.h, config/i386/i386-interix.h, config/i386/cygwin1.c, config/i386/djgpp.opt, config/i386/uwin.h, config/i386/unix.h, config/i386/ptx4-i.h, config/i386/xm-djgpp.h, config/i386/att.h, config/i386/winnt.c, config/i386/beos-elf.h, config/i386/sol2-10.h, config/i386/darwin64.h, config/i386/sse.md, config/i386/i386.opt, config/i386/bsd.h, config/i386/cygming.opt, config/i386/xm-mingw32.h, config/i386/linux64.h, config/i386/openbsdelf.h, config/i386/xm-cygwin.h, config/i386/sco5.opt, config/i386/darwin.h, config/i386/mingw32.h, config/i386/winnt-cxx.c, config/i386/i386-interix3.h, config/i386/nwld.c, config/i386/nwld.h, config/i386/host-cygwin.c, config/i386/cygwin2.c, config/i386/i386-protos.h, config/i386/sync.md, config/i386/openbsd.h, config/i386/host-mingw32.c, config/i386/i386-aout.h, config/i386/nto.h, config/i386/biarch64.h, config/i386/i386-coff.h, config/i386/freebsd.h, config/i386/driver-i386.c, config/i386/knetbsd-gnu.h, config/i386/host-i386-darwin.c, config/i386/vxworks.h, config/i386/crtdll.h, config/i386/i386.c, config/i386/sysv4.h, config/darwin-protos.h, config/linux.opt, config/sol2.c, config/sol2.h, config/sh/symbian.c, config/sh/sh-protos.h, config/sh/linux.h, config/sh/elf.h, config/sh/superh.h, config/sh/sh4.md, config/sh/coff.h, config/sh/newlib.h, config/sh/embed-elf.h, config/sh/symbian-pre.h, config/sh/rtems.h, config/sh/kaos-sh.h, config/sh/sh4a.md, config/sh/constraints.md, config/sh/sh64.h, config/sh/sh.opt, config/sh/symbian-post.h, config/sh/sh-c.c, config/sh/predicates.md, config/sh/sh.c, config/sh/sh.h, config/sh/shmedia.md, config/sh/sh-modes.def, config/sh/little.h, config/sh/sh1.md, config/sh/sh4-300.md, config/sh/superh64.h, config/sh/rtemself.h, config/sh/netbsd-elf.h, config/sh/sh.md, config/sh/vxworks.h, config/usegas.h, config/svr3.h, config/pdp11/pdp11-protos.h, config/pdp11/2bsd.h, config/pdp11/pdp11.md, config/pdp11/pdp11.c, config/pdp11/pdp11.opt, config/pdp11/pdp11-modes.def, config/pdp11/pdp11.h, config/avr/rtems.h, config/avr/avr-protos.h, config/avr/predicates.md, config/avr/constraints.md, config/avr/avr.md, config/avr/avr.c, config/avr/avr.opt, config/avr/avr.h, config/sol2-protos.h, config/dbxelf.h, config/lynx.opt, config/crx/crx.h, config/crx/crx-protos.h, config/crx/crx.md, config/crx/crx.c, config/crx/crx.opt, config/c4x/c4x-c.c, config/c4x/c4x.c, config/c4x/c4x.opt, config/c4x/c4x-modes.def, config/c4x/rtems.h, config/c4x/predicates.md, config/c4x/c4x.h, config/c4x/c4x-protos.h, config/c4x/c4x.md, config/kfreebsd-gnu.h, config/xtensa/predicates.md, config/xtensa/xtensa.c, config/xtensa/linux.h, config/xtensa/xtensa.h, config/xtensa/elf.h, config/xtensa/xtensa.md, config/xtensa/xtensa.opt, config/xtensa/constraints.md, config/xtensa/xtensa-protos.h, config/dbx.h, config/stormy16/predicates.md, config/stormy16/stormy16.md, config/stormy16/stormy16.c, config/stormy16/stormy16.opt, config/stormy16/stormy16.h, config/stormy16/stormy16-protos.h, config/host-solaris.c, config/fr30/fr30.h, config/fr30/predicates.md, config/fr30/fr30-protos.h, config/fr30/fr30.md, config/fr30/fr30.c, config/fr30/fr30.opt, config/vxworksae.h, config/sol2-c.c, config/lynx.h, config/m68hc11/m68hc11-protos.h, config/m68hc11/predicates.md, config/m68hc11/m68hc11.md, config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.opt, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h, config/openbsd-oldgas.h, config/host-linux.c, config/interix3.h, config/cris/cris.c, config/cris/predicates.md, config/cris/linux.h, config/cris/cris.h, config/cris/aout.h, config/cris/cris.md, config/cris/linux.opt, config/cris/cris.opt, config/cris/elf.opt, config/cris/aout.opt, config/cris/cris-protos.h, config/vxworks-dummy.h, config/netbsd.h, config/netbsd-elf.h, config/iq2000/iq2000.h, config/iq2000/predicates.md, config/iq2000/iq2000-protos.h, config/iq2000/iq2000.md, config/iq2000/iq2000.c, config/iq2000/iq2000.opt, config/host-darwin.c, config/mt/mt.md, config/mt/mt.c, config/mt/mt.opt, config/mt/t-mt, config/mt/mt.h, config/mt/mt-protos.h, config/svr4.h, config/host-darwin.h, config/chorus.h, config/mn10300/mn10300.c, config/mn10300/mn10300.opt, config/mn10300/predicates.md, config/mn10300/mn10300.h, config/mn10300/linux.h, config/mn10300/constraints.md, config/mn10300/mn10300-protos.h, config/mn10300/mn10300.md, config/ia64/predicates.md, config/ia64/itanium1.md, config/ia64/unwind-ia64.h, config/ia64/ia64-c.c, config/ia64/sync.md, config/ia64/ia64.c, config/ia64/itanium2.md, config/ia64/ia64.h, config/ia64/vect.md, config/ia64/freebsd.h, config/ia64/ia64.md, config/ia64/ia64-modes.def, config/ia64/constraints.md, config/ia64/hpux.h, config/ia64/ia64-protos.h, config/windiss.h, config/gofast.h, config/rtems.h, config/sol2-10.h, config/m68k/predicates.md, config/m68k/m68k.md, config/m68k/linux.h, config/m68k/m68k-modes.def, config/m68k/print-sysroot-suffix.sh, config/m68k/m68k-protos.h, config/m68k/coff.h, config/m68k/m68k-none.h, config/m68k/ieee.opt, config/m68k/openbsd.h, config/m68k/m68k-aout.h, config/m68k/m68k.opt, config/m68k/m68020-elf.h, config/m68k/m68kelf.h, config/m68k/m68k-devices.def, config/m68k/uclinux-oldabi.h, config/m68k/m68k.c, config/m68k/constraints.md, config/m68k/rtemself.h, config/m68k/netbsd-elf.h, config/m68k/m68k.h, config/m68k/uclinux.h, config/rs6000/power4.md, config/rs6000/host-darwin.c, config/rs6000/6xx.md, config/rs6000/linux.h, config/rs6000/eabi.h, config/rs6000/aix41.opt, config/rs6000/xcoff.h, config/rs6000/secureplt.h, config/rs6000/linuxspe.h, config/rs6000/eabialtivec.h, config/rs6000/8540.md, config/rs6000/darwin8.h, config/rs6000/kaos-ppc.h, config/rs6000/windiss.h, config/rs6000/603.md, config/rs6000/aix41.h, config/rs6000/cell.md, config/rs6000/mpc.md, config/rs6000/aix43.h, config/rs6000/beos.h, config/rs6000/gnu.h, config/rs6000/rtems.h, config/rs6000/aix.opt, config/rs6000/darwin.md, config/rs6000/darwin64.h, config/rs6000/default64.h, config/rs6000/7xx.md, config/rs6000/darwin.opt, config/rs6000/spe.md, config/rs6000/rs6000.opt, config/rs6000/rs6000-c.c, config/rs6000/rios2.md, config/rs6000/linuxaltivec.h, config/rs6000/7450.md, config/rs6000/linux64.h, config/rs6000/constraints.md, config/rs6000/440.md, config/rs6000/darwin.h, config/rs6000/host-ppc64-darwin.c, config/rs6000/rs6000.c, config/rs6000/aix52.h, config/rs6000/rs6000.h, config/rs6000/power6.md, config/rs6000/predicates.md, config/rs6000/altivec.md, config/rs6000/aix64.opt, config/rs6000/rios1.md, config/rs6000/rs6000-modes.def, config/rs6000/rs64.md, config/rs6000/eabisim.h, config/rs6000/sysv4le.h, config/rs6000/darwin7.h, config/rs6000/dfp.md, config/rs6000/linux64.opt, config/rs6000/sync.md, config/rs6000/vxworksae.h, config/rs6000/power5.md, config/rs6000/lynx.h, config/rs6000/biarch64.h, config/rs6000/rs6000.md, config/rs6000/sysv4.opt, config/rs6000/eabispe.h, config/rs6000/e500.h, config/rs6000/freebsd.h, config/rs6000/rs6000-protos.h, config/rs6000/netbsd.h, config/rs6000/e500-double.h, config/rs6000/aix.h, config/rs6000/vxworks.h, config/rs6000/40x.md, config/rs6000/aix51.h, config/rs6000/sysv4.h, config/arc/arc-protos.h, config/arc/arc.md, config/arc/arc.c, config/arc/arc.opt, config/arc/arc-modes.def, config/arc/arc.h, config/mcore/mcore-elf.h, config/mcore/mcore-protos.h, config/mcore/predicates.md, config/mcore/mcore.md, config/mcore/mcore.c, config/mcore/mcore.opt, config/mcore/mcore.h, config/mcore/mcore-pe.h, config/darwin.c, config/freebsd-nthr.h, config/score/predicates.md, config/score/score-version.h, config/score/score-protos.h, config/score/misc.md, config/score/elf.h, config/score/score.c, config/score/mac.md, config/score/score7.md, config/score/score.h, config/score/score-conv.h, config/score/score-mdaux.c, config/score/score.md, config/score/score.opt, config/score/score-modes.def, config/score/score-mdaux.h, config/score/mul-div.S, config/arm/uclinux-elf.h, config/arm/semi.h, config/arm/ecos-elf.h, config/arm/arm1020e.md, config/arm/symbian.h, config/arm/linux-elf.h, config/arm/arm1026ejs.md, config/arm/arm1136jfs.md, config/arm/elf.h, config/arm/aout.h, config/arm/arm.c, config/arm/thumb2.md, config/arm/vec-common.md, config/arm/coff.h, config/arm/strongarm-pe.h, config/arm/arm.h, config/arm/cortex-a8-neon.md, config/arm/semiaof.h, config/arm/cortex-a8.md, config/arm/uclinux-eabi.h, config/arm/arm-modes.def, config/arm/linux-eabi.h, config/arm/rtems-elf.h, config/arm/neon-schedgen.ml, config/arm/arm-cores.def, config/arm/arm-protos.h, config/arm/vfp.md, config/arm/aof.h, config/arm/linux-gas.h, config/arm/wince-pe.h, config/arm/neon.md, config/arm/constraints.md, config/arm/neon.ml, config/arm/xscale-elf.h, config/arm/strongarm-coff.h, config/arm/arm.opt, config/arm/arm926ejs.md, config/arm/predicates.md, config/arm/iwmmxt.md, config/arm/arm_neon.h, config/arm/unknown-elf.h, config/arm/kaos-arm.h, config/arm/bpabi.h, config/arm/pe.opt, config/arm/neon-testgen.ml, config/arm/arm.md, config/arm/xscale-coff.h, config/arm/pe.c, config/arm/arm-generic.md, config/arm/pe.h, config/arm/kaos-strongarm.h, config/arm/freebsd.h, config/arm/neon-docgen.ml, config/arm/netbsd.h, config/arm/fpa.md, config/arm/strongarm-elf.h, config/arm/cirrus.md, config/arm/netbsd-elf.h, config/arm/vxworks.h, config/arm/neon-gen.ml, config/kaos.h, config/darwin-driver.c, config/pa/predicates.md, config/pa/pa64-hpux.h, config/pa/pa-hpux.opt, config/pa/som.h, config/pa/pa-hpux1010.opt, config/pa/pa-hpux1111.opt, config/pa/pa-pro-end.h, config/pa/elf.h, config/pa/fptr.c, config/pa/pa64-linux.h, config/pa/pa.md, config/pa/pa.opt, config/pa/pa-hpux.h, config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-hpux1010.h, config/pa/pa-protos.h, config/pa/pa-osf.h, config/pa/pa-hpux1111.h, config/pa/pa-64.h, config/pa/milli64.S, config/pa/pa.c, config/pa/pa-linux.h, config/pa/pa.h, config/pa/pa32-linux.h, config/pa/pa64-hpux.opt, config/pa/pa64-regs.h, config/pa/pa-modes.def, config/pa/constraints.md, config/darwin9.h, config/mips/4100.md, config/mips/linux.h, config/mips/elfoabi.h, config/mips/elf.h, config/mips/sdb.h, config/mips/windiss.h, config/mips/rtems.h, config/mips/3000.md, config/mips/iris5.h, config/mips/5000.md, config/mips/7000.md, config/mips/9000.md, config/mips/4600.md, config/mips/linux64.h, config/mips/elforion.h, config/mips/constraints.md, config/mips/generic.md, config/mips/predicates.md, config/mips/4300.md, config/mips/mips-ps-3d.md, config/mips/iris.h, config/mips/24k.md, config/mips/mips.md, config/mips/mips.opt, config/mips/4k.md, config/mips/5k.md, config/mips/vr4120-div.S, config/mips/openbsd.h, config/mips/iris6.h, config/mips/4000.md, config/mips/mips-protos.h, config/mips/6000.md, config/mips/mips.c, config/mips/mips.h, config/mips/r3900.h, config/mips/74k.md, config/mips/netbsd.h, config/mips/vxworks.h, config/mips/mips-modes.def, config/mips/vr.h, config/soft-fp/t-softfp, config/openbsd.h, config/ptx4.h, config/freebsd-spec.h, config/vax/vax.c, config/vax/openbsd.h, config/vax/vax.h, config/vax/elf.h, config/vax/vax.md, config/vax/bsd.h, config/vax/vax.opt, config/vax/vax-modes.def, config/vax/openbsd1.h, config/vax/netbsd.h, config/vax/vax-protos.h, config/vax/netbsd-elf.h, config/vax/vaxv.h, config/vax/ultrix.h, config/freebsd.h, config/h8300/rtems.h, config/h8300/predicates.md, config/h8300/h8300.c, config/h8300/h8300.h, config/h8300/elf.h, config/h8300/h8300.md, config/h8300/h8300.opt, config/h8300/coff.h, config/h8300/h8300-protos.h, config/v850/v850.md, config/v850/predicates.md, config/v850/v850-c.c, config/v850/v850.c, config/v850/v850.opt, config/v850/v850.h, config/v850/v850-protos.h, config/vxworks.c, config/knetbsd-gnu.h, config/sol2-6.h, config/vxworks.h, config/mmix/mmix.h, config/mmix/predicates.md, config/mmix/mmix-protos.h, config/mmix/mmix.md, config/mmix/mmix.c, config/mmix/mmix.opt, config/mmix/mmix-modes.def, config/bfin/bfin.opt, config/bfin/rtems.h, config/bfin/bfin-modes.def, config/bfin/predicates.md, config/bfin/bfin-protos.h, config/bfin/bfin.c, config/bfin/bfin.h, config/bfin/bfin.md: Likewise. From-SVN: r127157
2005-06-25Update FSF address.R. Kelley Cook1-2/+2
From-SVN: r101314
2005-05-133000.md, [...]: Update copyright.Kazu Hirata1-1/+1
* config/mips/3000.md, config/mips/4000.md, config/mips/4100.md, config/mips/4300.md, config/mips/4600.md, config/mips/5000.md, config/mips/7000.md, config/mips/9000.md, config/mips/generic.md, config/pdp11/pdp11.md, config/sh/crt1.asm, config/sh/lib1funcs.asm, config/sh/sh-modes.def, config/sh/sh-protos.h, config/sh/shmedia.md, config/sh/ushmedia.h: Update copyright. From-SVN: r99647
2005-05-09re PR target/20695 (sh64-*-* port deos not handle 32 / 64 bit conversions ↵J"orn Rennecke1-4/+6
properly) gcc: 2005-05-09 J"orn Rennecke <joern.rennecke@st.com> * config/sh/sh.h (OVERRIDE_OPTIONS): Don't set flag_finite_math_only if flag_signaling_nans is set. For TARGET_SH2E, if flag_finite_math_only is not set, set IEEE_BIT. * doc/invoke.texi (SH -mieee): Document relation to -ffinite-math-only. 2005-05-06 J"orn Rennecke <joern.rennecke@st.com> Merge of sh-elf specific patches from sh-elf-4_1-branch: 2005-05-05 Kaz Kojima <kkojima@gcc.gnu.org> * config/sh/sh.h (ASM_OUTPUT_REG_PUSH): Provide SHMEDIA version. (ASM_OUTPUT_REG_POP): Likewise. 2005-05-05 J"orn Rennecke <joern.rennecke@st.com> Kaz Kojima <kkojima@gcc.gnu.org> * config/sh/sh.c (sh_builtin_saveregs): Use copy_to_mode_reg and plus_constant. 2005-05-04 Kaz Kojima <kkojima@gcc.gnu.org> * config/sh/sh.c (sh_div_strategy): Initialize with SH_DIV_STRATEGY_DEFAULT. * config/sh/sh.c (SH_DIV_STR_FOR_SIZE): Define. (SH_DIV_STRATEGY_DEFAULT): Likewise. (OPTIMIZATION_OPTIONS): Set sh_div_str to SH_DIV_STR_FOR_SIZE when optimized for size. * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT): Redefine. (SH_DIV_STR_FOR_SIZE): Likewise. * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT): Likewise. (SH_DIV_STR_FOR_SIZE): Likewise. 2005-05-04 J"orn Rennecke <joern.rennecke@st.com> * config/sh/sh-modes.def (PDImode): Add. * config/sh/sh-protos.h (shmedia_prepare_call_address): Declare. * config/sh/sh.c (print_operand): Handle IF_THEN_ELSE. (target_reg_operand): Allow PDImode. (sh_register_move_cost): If neither sh_gettrcost_str nor TARGET_PT_FIXED is set, assume gettr costs 100. (shmedia_prepare_call_address): New function. (sh_gettrcost_str): Initialize to empty string. (sh_divsi3_libfunc): New variable. * config/sh/sh.h (PT_FIXED_BIT, TARGET_INVALID_SYMBOLS): Define. (TARGET_SWITCH_SH5_32_ANY_EXTRA): Likewise. (TARGET_SWITCH_SH5_MEDIA_ANY_EXTRA): Likewise. (TARGET_SWITCHES): Use TARGET_SWITCH_SH5_32_ANY_EXTRA and TARGET_SWITCH_SH5_MEDIA_ANY_EXTRA. (TARGET_OPTIONS): Add -mdivsi3_libfunc. (OVERRIDE_OPTIONS): Set sh_divsi3_libfunc if it hasn't been set by the user. Also set flag_no_function_cse for (TARGET_SHMEDIA && !TARGET_PT_FIXED). (HARD_REGNO_MODE_OK): Allow TARGET_REGS in PDImode. (CONSTRAINT_LEN): Remove debug version. (SECONDARY_INOUT_RELOAD_CLASS:) Break out of (SECONDARY_OUTPUT_RELOAD_CLASS). Use EXTRA_CONSTRAINT_Csy for check if a target register needs a secondary reload through GENERAL_REGS. (SECONDARY_INPUT_RELOAD_CLASS): Use SECONDARY_INOUT_RELOAD_CLASS. (sh_divsi3_libfunc): Declare. (FUNCTION_PROFILER): Provide SHMEDIA version. * config/sh/predicates.md: New file. * config/sh/sh.md (predicates.md): Include. (divsi_inv_call_combine, divsi3): Use sh_divsi3_libfunc. (reload_insi): Fix predicates and constraints. (ptabs): New expander. (*extendsipdi_media, *truncdipdi_media): New insns. (call, call_value, sibcall): Use shmedia_prepare_call_address. * doc/invoke.texi (-multcost, -mdiv): Document new SH options. (-mdivsi3_libfunc, -madjust-unroll, -mindexed-addressing): Likewise. (-mgettrcost, -mpt-fixed, -minvalid-symbols): Likewise. 2005-04-11 J"orn Rennecke <joern.rennecke@st.com> * sh.c (print_operand): Remove sh_rep_vec extraction. (sh_output_mi_thunk): Make i unsigned. * sh.c (TARGET_ADJUST_UNROLL_MAX): Only redefine if already defined. (sh_adjust_unroll_max): Only define if TARGET_ADJUST_UNROLL_MAX is defined. Update label detection code and iteration lookup, enable basic functionality, but without IV analysis. 2005-04-11 J"orn Rennecke <joern.rennecke@st.com> * sh.h (OPTIMIZATION_OPTIONS): Don't make setting of flag_branch_target_load_optimize dependent on TARGET_SHMEDIA. Set flag_finite_math_only to 2. If flag_finite_math_only set set to 2, set it to 1 iff we use SH2E..SH4 arithmetic without full IEEE support. 2005-04-09 Kaz Kojima <kkojima@gcc.gnu.org> * config/sh/lib1funcs.asm (ic_invalidate): Fix typos. * config/sh/t-linux (LIB1ASMFUNCS_CACHE): Add _ic_invalidate_array. 2005-04-06 J"orn Rennecke <joern.rennecke@st.com> Merge of SuperH / STM SH specific patches, including fix for PR target/20695: * config.gcc (sh*-superh-elf, sh*elf (newlib)): Use newlib.h when building with libgloss. (sh*elf): Implement --without-fp option. (sh64-superh-linux*): Don't multilib. (sh*-*-linux): Use sh3 as basic multilib. * config/sh/crt1.asm (SHmedia start): Add code to enable the MMU, and to set up vbr. Enable FPU before calling set_fpscr. Load atexit address just before use. Use __SH_FPU_ANY__. (SH3*/SH4* start): Add code to set up vbr. Use __SH_FPU_ANY__. Set DN bit in fpscr. * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Merge into: config/sh/sh.h (SH_ASM_SPEC, SUBTARGET_ASM_ISA_SPEC): Here. * config/sh/lib1funcs.asm (HIDDEN_FUNC, HIDDEN_ALIAS): Define. (FMOVD_WORKS): Don't define for __SH5__. (ashiftrt_r4_0, ashiftrt_r4_1, ashiftrt_r4_2, ashiftrt_r4_3): Hide. (ashiftrt_r4_4, ashiftrt_r4_5, ashiftrt_r4_6, ashiftrt_r4_7): Hide. (ashiftrt_r4_8, ashiftrt_r4_9, ashiftrt_r4_10, ashiftrt_r4_11): Hide. (ashiftrt_r4_12, ashiftrt_r4_13, ashiftrt_r4_14, ashiftrt_r4_15): Hide. (ashiftrt_r4_16, ashiftrt_r4_17, ashiftrt_r4_18, ashiftrt_r4_19): Hide. (ashiftrt_r4_20, ashiftrt_r4_21, ashiftrt_r4_22, ashiftrt_r4_23): Hide. (ashiftrt_r4_24, ashiftrt_r4_25, ashiftrt_r4_26, ashiftrt_r4_27): Hide. (ashiftrt_r4_28, ashiftrt_r4_29, ashiftrt_r4_30, ashiftrt_r4_31): Hide. (ashiftrt_r4_32, ashrsi3, ashlsi3, lshrsi3, movmem, movstr): Hide. (movstrSI64, movmemSI64, movstrSI60, movmemSI60): Hide. (movstrSI56, movmemSI56, movstrSI52, movmemSI52): Hide. (movstrSI48, movmemSI48, movstrSI44, movmemSI44): Hide. (movstrSI40, movmemSI40, movstrSI36, movmemSI36): Hide. (movstrSI32, movmemSI32, movstrSI28, movmemSI28): Hide. (movstrSI24, movmemSI24, movstrSI20, movmemSI20): Hide. (movstrSI16,movmemSI16, movstrSI12,movmemSI12): Hide. (movstrSI8,movmemSI8, movstrSI4,movmemSI4): Hide. (movmemSI0, movstrSI0): Remove. (movmemSI4): Schedule last store into rts delay slot. (movmem): Shorten code. Provide ENDFUNC. (movmem_i4_even, movmem_i4_odd, movmemSI12_i4, mulsi3): Hide. (mulsi3): Provide ENDFUNC. (sdivsi3_i4, sdivsi3_i4, udivsi3_i4, udivsi3, set_fpscr): Hide. (SH5 sdivsi3): Reimplement, using: (div_table): New, linear approximation table lookup for division seed. (sdivsi3_2): New SH5 entry point. (divdi3): Use hidden alias for udivdi3. (moddi3): Use hidden alias for umoddi3. (init_trampoline): Hide. Provide exact ENDFUNC. (ic_invalidate): Hide. Re-implement SH4 version, using (ic_invalidate_array): New global. (GCC_shcompact_return_trampoline, GCC_nested_trampoline): Hide. (GCC_push_shmedia_regs_nofpu): Only provide for __SH4_NOFPU__. (GCC_pop_shmedia_regs_nofpu): Likewise. * config/sh/libgcc-excl.ver (__mulsi3): Add. * config/sh/linux.h (TARGET_DEFAULT): Include TARGET_OPT_DEFAULT. * config/sh/sh-protos.h (sh_function_kind): New enum. (sh_gen_truncate, replace_n_hard_rtx): Declare. (function_symbol): Update declaration. (shmedia_cleanup_truncate, sh_contains_memref_p): Declare. * sh.c (cfgloop.h): Include. (TARGET_ADJUST_UNROLL_MAX): Redefine. (print_operand): Add '>' and 'U' support. Handle TRUNCATE and SIGN_EXTEND. (function_sybol): Add arguments for target and kind of symbol. If not an ordinary function symbol, make sure the string becomes unique. For PIC, load appropriately depending on kind of symbol. Changed all callers. (prepare_move_operands): Dont copy R0 to a pseudo for SHmedia. (multcosts): Check sh_multcost_str. If not set, return 2 for SHMEDIA TARGET_SMALLCODE. (sh_rtx_costs): Lower some costs when outer_code is SET. Add code for CONST_VECTOR, MINUS and PARALLEL. (gen_shifty_op): Don't emit nop. (expand_ashiftrt): While expanding to rtl, do shift by 31 using a register set to zero. (gen_datalabel_ref): Make sure that the string is shared. (MAX_POOL_SIZE): Define as 372. (find_barrier): Remove spurious adjustment. (sh_media_register_for_return): Return -1 for interrupt handlers. (sh_pch_valid_p): Use a copy of TARGET_OPTIONS. (general_movsrc_operand): Accept vector that match sh_rep_vec. (general_movdst_operand): For SHmedia, recject paradoxical DImode subregs before high_life / reload. (arith_reg_operand): Allow no-op sign extensions. (logical_reg_operand, fp_arith_reg_dest, xor_operand): New functions. (cmp_operand, shift_operator, logical_operator): Likewise. (minuend_operand, ua_address_operand, cache_address_operand): Likewise. (ua_offset, shift_count_reg_operand, shift_count_operand): Likewise. (sh_adjust_unroll_max, replace_n_hard_rtx, sh_gen_truncate): Likewise. (shmedia_cleanup_truncate, sh_contains_memref_p_1): Likewise. (sh_contains_memref_p): Likewise. (shmedia_6bit_operand): Remove. (arith_operand): Allow some TRUNCATEs. (logical_operand): Disallow subregs <= SImode of >= DImode. (greater_comparison_operator): Fix mode comparison. (less_comparison_operator): Likewise. (target_reg_operand, target_operand): Compare modes with Pmode. (sh_adjust_cost): Consider the dependency between a target register load and its use in a subsequent block. Implement mac_media latency exception. Before reload, anticipate floating point latencies to be at least four. Give preference to the ptabs feeding a casesi_jump_media. Handle UNSPEC in a CALL address. (sh_optimize_target_register_callee_saved): Improve handling of borderline cases. (sh_function_ok_for_sibcall): Allow for non-pic, and also when we will use the symbol with @GOTOFF addressing. (SH_BLTIN_UDI): Remove. (SH_BLTIN_LDUA_L64, SH_BLTIN_LDUA_Q64, SH_BLTIN_STUA_L64): New. (SH_BLTIN_STUA_Q64): Likewise. (signature_args, SH_BLTIN_NUM_SHARED_SIGNATURES): Update. (SH_BLTIN_2, SH_BLTIN_SU, SH_BLTIN_3, SH_BLTIN_SUS): Renumber. (SH_BLTIN_PSSV, SH_BLTIN_XXUU, SH_BLTIN_UUUU, SH_BLTIN_PV): Likewise. (bdesc): Add entries for alloco, mac_media, sqrtdf2, sqrtsf2, fsrra_s, {ld,st}{hi,lo}.[lq] and prefetch. Change mextr entries to use SH_BLTIN_V8QI3. (sh_media_init_builtins): Implement specific TARGET_SHMEDIA32 / TARGET_SHMEDIA64 checks for pointer arguments. (sh_expand_builtin): For pointer types, use ptr_mode / ptr_type_mode. (sh_register_move_cost): Check sh_gettrcost_str. (cmpsi_operand): T_REG is only allowed for TARGET_SH1. (sh_output_mi_thunk): Make static. Check that needed registers are actually available. Make sure that the sibcall won't go via the PLT. (sh_multcost_str, sh_gettrcost_str, sh_div_str): New variables. (cut2_workaround_str, sh_div_strategy, boardtype, osruntime): Likewise. (arith_reg_dest): Allow paradoxical DImode subreg for ! TARGET_SHMEDIA. * sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH_FPU_ANY__ and __SH_FPU_DOUBLE__. (INDEXED_ADDRESS_BIT, ADJUST_UNROLL_BIT, TARGET_DIVIDE_INV): Define. (TARGET_HARVARD): Also true for TARGET_SH5. (TARGET_DIVIDE_FP, TARGET_DIVIDE_INV_FP, TARGET_DIVIDE_CALL2): Define. (TARGET_DIVIDE_INV_MINLAT, TARGET_DIVIDE_INV20U): Define. (TARGET_DIVIDE_INV20L, TARGET_DIVIDE_INV_CALL): Define. (TARGET_DIVIDE_INV_CALL2, TARGET_ALLOW_INDEXED_ADDRESS): Define. (TARGET_ADJUST_UNROLL, TARGET_OPT_DEFAULT, SUBTARGET_OPTIONS): Define. (TARGET_SWITCHES): Removed excessive whitespace. Added options indexed-addressing, no-indexed-addressing, adjust-unroll and no-adjust-unroll. (TARGET_DEFAULT): Add TARGET_OPT_DEFAULT. (TARGET_OPTIONS): Define. (EXTRA_SPECS): Add subtarget_asm_spec. (SH_ASM_SPEC): Pass cut2-workaround option. (SUBTARGET_ASM_ISA_SPEC): Enforce STRICT_NOFPU for SH4 --without-fp. (LINK_EMUL_PREFIX): If target defaults to little endian, default to shl. (OPTIMIZATION_OPTIONS): Set sh_div_str. If not using if not -mieee, set flag_finite_math_only. (sh_divide_strategy_e): New enum. (sh_div_strategy): Declare. (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for TARGET_SHCOMPACT. Clear flag_if_conversion2 for SHMEDIA. Set sh_div_strategy. Leave profile_flag and profile_arc_flag alone. (LOOP_ALIGN): Replace TARGET_HARVARD test with TARGET_HARD_SH4 test. (HARD_REGNO_MODE_OK): Allow TImode in aligned FP registers. (MODES_TIEABLE_P): For TARGET_SHMEDIA, allow tying of integral modes of the same size. (CONST_OK_FOR_I): Fix detection of I06 constraint. (PREFERRED_RELOAD_CLASS): Also choose GENERAL_REGS for PIC_DIRECT_ADDR_P. (SECONDARY_INPUT_RELOAD_CLASS): Fix parentheses. For TARGET_SHMEDIA, check for inqhi_operand, LABEL_REF and PIC_DIRECT_ADDR_P. (FUNCTION_VALUE, PROMOTE_MODE): Don't promote from SImode. For TARGET_SHMEDIA32, promote to SImode. (EXTRA_CONSTRAINT_C16): Allow SIGN_EXTEND to SImode. (DATALABEL_REF_NO_CONST_P: Don't allow SYMBOL_REF. (DATALABEL_REF_P): Don't define. (NON_PIC_REFERENCE_P): Allow LABEL_REF and SYMBOL_REF directly inside a CONST. Don't allow DATALABEL_REF_NO_CONST_P outside of a CONST. Allow a LABEL_REF in a sum. (BASE_REGISTER_RTX_P): Check TRULY_NOOP_TRUNCATION. (INDEX_REGISTER_RTX_P): Likewise. (GO_IF_LEGITIMATE_INDEX): Check if pased the address of an unaligned load / store. (ALLOW_INDEXED_ADDRESS): Define. (GO_IF_LEGITIMATE_ADDRESS): Use it. (TRULY_NOOP_TRUNCATION): Don't allow no-op truncation from 64 bit or beyond to less than 64 bit. (PRINT_OPERAND_PUNCT_VALID_P): Allow '>'. (rtx_equal_function_value_matters): Don't declare. (arith_reg_operand): Allow sign_extend. (PREDICATE_CODES): Allow SIGN_EXTEND in arith_reg_operand. Add any_arith_reg_dest, cache_address_operand, cmp_operand, fp_arith_reg_dest, logical_operator, logical_reg_operand, minuend_operand, shift_count_operand, shift_count_reg_operand, shift_operator, ua_address_operand, ua_offset, unary_float_operator, xor_operand. Don't allow PARALLEL in sh_1el_vec and sh_rep_vec Remove shmedia_6bit_operand. (SPECIAL_MODE_PREDICATES): Add any-arith_reg_dest, target_operand and target_reg_operand. (SIDI_OFF, SIMULTANEOUS_PREFETCHES, high_life_started): Define. (sh_multcost_str, sh_gettrcost_str, sh_div_str): Declare. (cut2_workaround_str): Declare. (INDEX_REG_CLASS): Is NO_REGS if ALLOW_INDEXED_ADDRESS is zero. (LEGITIMIZE_RELOAD_ADDRESS): Check ALLOW_INDEXED_ADDRESS. Substitute INDEX_REG_CLASS with R0_REGS. * sh.md (UNSPEC_DIV_INV_M0, UNSPEC_DIV_INV_M1): New constants. (UNSPEC_DIV_INV_M2, UNSPEC_DIV_INV_M3, UNSPEC_DIV_INV20): Likewise. (UNSPEC_ASHIFTRT, UNSPEC_THUNK): Likewise. (Attribute "length"): jump_media has length 8 if TARGET_SH5_CUT2_WORKAROUND is true. ("highpart"): New attribute. (cmpsi): Allow TARGET_SHMEDIA. (cmpeqsi_media, cmpgtsi_media, cmpgtusi_media): New patterns. (cmpsieqsi_media, cmpsieqdi_media, cmpsigtsi_media): Likewise. (cmpsigtdi_media, cmpsigtusi_media, cmpsigtudi_media): Likewise. (*cmpne0si_media, *cmpne0sisi_media, movdicc_true+1): Likewise. (movdicc_true+2, movsicc_false, movsicc_true): Likewise. (movsicc_true+1, movsicc_true+2, movsicc_true+3): Likewise. (*movsicc_umin, movsicc, movqicc, *adddisi3_media): Likewise. (addsidi3_media, subdisi3_media, mov_neg_si_t): Likewise. (*subsi3_media+1, *subsi3_media+2, divsi3_media_2): Likewise. (divsi_inv_call, *divsi_inv_call_combine, divsi_inv_m0): Likewise. (divsi_inv_m1, divsi_inv_m2, divsi_inv_m3, divsi_inv_m1_3): Likewise. (divsi_inv20, divsi_inv_fp, *divsi_inv_fp_combine, muldi3): Likewise. (*andsi3_media, andcsi3): Likewise. (cmpeqdi_media): Use cmp_operand operand predicate. (*adddi3_media, adddi3z_media): Use arith_reg_dest operand predicate. (adddi3_compact, adddi3_compact+1, addc, addc1): Likewise. (addsi3_media, *addsi3_compact, *subdi3_media): Likewise. (subdi3_compact, subdi3_compact+1, subc, subc1): Likewise. (*subsi3_internal, *subsi3_media, udivsi3_sh2a, divsi3_sh2a): Likewise. (mul_r, mulsidi3_media, mulsidi3_compact): Likewise. (mulsidi3_compact+1, umulsidi3_media, umulsidi3_compact): Likewise. (umulsidi3_compact+1, *andsi3_compact, anddi3, andcdi3): Likewise. (*subsi3_media): Make define_insn_and_split. Use minuend_operand operand predicate. (subsi3): Don't force operand 1 into a register if it is a SUBREG. (udivsi3_i1_media, udivsi3): Use Pmode for function/target address. (divsi3_i1_media, beq_media, *beq_media_i, bne_media): Likewise. (bgt_media, bge_media, bgtu_media, bgeu_media, *bgt_media_i): Likewise. (*blt_media_i, bunordered, jump_media, jump, call_media): Likewise. (call_value_media, call, call_value, sibcall_media, sibcall): Likewise. (indirect_jump, casesi_jump_media, GOTaddr2picreg, *ptb): Likewise. (symGOT_load, casesi, casesi_shift_media, casesi_load_media): Likewise. (return_media_i, return_media): Likewise. (udivsi3_i1_media): Enable also for ! TARGET_DIVIDE_FP. (divsi3_i1_media): Likewise. Don't clobber R2 / R3 / TR1 / TR2. (divsi3): Add support for division by multiplying with inverse. (andsi3): Use logical_reg_operand predicate. Add SHmedia support. (iorsi3): Rename to: (*iorsi3_compact). (xorsi3): Rename to: (*xorsi3_compact). (iorsi3, *iorsi3_media, *logical_sidi3, xorsi3): New patterns. (*logical_sidisi3, *logical_sidi3_2, rotrdi3_mextr+1): Likewise. (ashrsi2_31+2, *ashlsi_c_void, *ashldisi3_media): Likewise. (*lshrdisi3_media, *ashrdisi3_media, ashrdisi3_media_high): Likewise. (ashrdisi3_media_opaque, one_cmpldi2+1, cneg, movsi_const): Likewise. (movsi_const_16bit, *movdi_media_I16, *shori_media_si): Likewise. (*beq_media_i32, *bgt_media_i32, *blt_media_i32): Likewise. (bunordered+1, sibcalli_thunk, ptrel_si, cmpsieqsf_media): Likewise. (cmpsieqdf_media, addv2hi3, ashlv2si3+1, subv2hi3, ldhi_l): Likewise. (ldhi_q, *ldhi_q_comb0, *ldhi_q_comb1, ldlo_l, ldlo_q): Likewise. (*ldlo_q_comb0, *ldlo_q_comb1, sthi_l, sthi_q): Likewise. (*sthi_q_comb0, *sthi_q_comb1, stlo_l, stlo_q): Likewise. (*stlo_q_comb0, *stlo_q_comb1, ldhi_l64, ldhi_q64, ldlo_l64): Likewise. (ldlo_q64, sthi_l64, sthi_q64, stlo_l64, stlo_q64, alloco_i): Likewise. (alloca_i+1): Likewise. (prefetch_media): Inhibit generator function generation. (prefetch_i4): Likewise. Also enable for TARGET_SHCOMPACT. (*iorsi3_compact, iordi3): Use arith_reg_dest operand predicate. (*xorsi3_compact, xordi3, xordi3+1, rotlsi3_1, rotlsi3_31): Likewise. (rotlsi3_16, rotlsi3, *rotlhi3_8, ashlsi3_sh2a, ashlsi3_std): Likewise. (ashlhi3_k, ashlsi3_n, ashlsi3_n+1, ashlsi3_media): Likewise. (*ashlhi3_n, ashlhi3+1, ashrsi3_sh2a, ashrsi3_k, ashrsi2_16): Likewise. (ashrsi2_16+1, ashrsi2_31, ashrsi2_31+1, ashlsi_c): Likewise. (ashrsi3_d, ashrsi3_media, lshrsi3_sh2a, lshrsi3_d): Likewise. (lshrsi3_m, lshrsi3_k, lshrsi3_n, lshrsi3_n, lshrsi3_media): Likewise. (lshrsi3, ashldi3_k, ashldi3_mediai, lshrdi3_k): Likewise. (ashrdi3_k, xtrct_left, xtrct_right, negc, *negdi_media): Likewise. (negsi2, one_cmplsi2, one_cmpldi2, zero_extendsidi2): Likewise. (*zero_extendhisi2_compact, *zero_extendqisi2_compact): Likewise. (zero_extendqihi2, extendhisi2, *extendhisi2_compact): Likewise. (extendqisi2, *extendqisi2_compact, extendqihi2): Likewise. (movsi_const_16bit+1, *movdi_media_I16+1): Likewise. (movdf_media_nofpu+1, movsf_media_nofpu+1, dect, movt, seq): Likewise. (movnegt+1, divsf3_i): Likewise. (xordi3): Use xor_operand operand predicate. (ashlsi3_media): Use shift_count_operand operand predicate. (ashrsi3_media, lshrsi3_media, ashldi3_media, lshrdi3_media): Likewise. (ashrdi3_media): Likewise. (ashrsi2_31+1): Use mov_neg_si_t. (lshrdi3_media, ashrdi3_media): Use ext_dest_operand predicate. Make sure that either the destination is not a subreg, or that the shift generates a sufficient number of sign bit copies. (*loaddi_trunc): Use any_register_operand predicate. (ic_invalidate_line_sh4a): Likewise. (*zero_extendhisi2_media+1): Use simplify_gen_subreg. (*extendhisi2_media+1i, *extendqisi2_media+1): Likewise. (extendsidi2): Add fmov.sl alternative. (load_ra): Add mode for operand 1. (*movsi_media): Discourage the use of floating point registers. Allow TRUNCATE. (*movsi_media_nofpu): Ignore target register alternative for register preferencing. Allow TRUNCATE. (movsi_const_16bit+1): Use gen_movsi_const, and add an REG_EQUAL note. (*movqi_media): Use extend_reg_or_0_operand predicate. (*movdi_media): Ignore target register alternative for register preferencing. Discourage the use of floating point registers. (*movdi_media_nofpu): Ignore target register alternative for register preferencing. (movdi_const_16bit+1): If the source is subregged from SImode, sign-extend highpart. Use ext_dest_operand predicate. (movdi_const_16bit+2, shori_media): Use ext_dest_operand predicate. (reload_outdf+7, reload_outdf+8): Check ALLOW_INDEXED_ADDRESS. (stuff_delay_slot): Add modes for operands 0 and 1. (*beq_media_i, *bgt_media_i): Add '>' to output templates. (*blt_media_i, jump_media): Likewise. (beq, bne): Pass through SImode inputs, and I06 constants. (bgt, blt, ble, bge, bgtu): Pass through SImode inputs, the constant 0. (bltu, bgeu, bleu): Likewise. (GOTaddr2picreg): Don't call gen_datalabel_ref. (ptrel): Rename to: (ptrel_di). (tls_global_dynamic, tls_local_dynamic): Add mode for call. (seq): Properly support input modes other than DImode. (slt, sle, sgt, sge,sne): Properly support SImode. (addsf3_i, negdf2_i, sqrtdf2_i, absdf2_i): Use fp_arith_reg_operand. (mac_media) Enable generator function generation. (fix_truncsfdi2): Use fp_arith_reg_dest operand predicate. (fix_truncdfdi2): Likewise. (movv8qi_i+3): Enable for CONST0_RTX too. (movv2hi_i): Use add.l, not addz.l. (ashlv2si3, ashlv4hi3, lshrv2si3): Use shift_count_reg_operand. (lshrv4hi3): Likewise. (ussubv8qi3): Allow zero for operand 1. (prefetch): Allow any mode for operand 0. Enable for SHCOMPACT. Use force_reg. * config/sh/shmedia.md: (shmedia): Remove automaton declaration. (sh5inst_pipe, sh5fpu_pipe): New automatons. (sh5issue): Use sh5inst_pipe. (sh5fds): Use sh5fpu_pipe. (shmedia_fdiv, shmedia_dfdiv): Also use sh5issue. * config/sh/sshmedia.h (sh_media_GETCON, sh_media_PUTCON): Declare with always_inline Attribute. * t-sh64 (LIB1ASMFUNCS): Add _div_table. * config/sh/ushmedia.h (sh_media_MABS_L): Use builtin function. (sh_media_MABS_W, sh_media_MADD_L, sh_media_MADD_W): Likewise. (sh_media_MADDS_L, sh_media_MADDS_UB, sh_media_MADDS_W): Likewise. (sh_media_MCMPEQ_B, sh_media_MCMPEQ_L, sh_media_MCMPEQ_W): Likewise. (sh_media_MCMPGT_UB, sh_media_MCMPGT_L, sh_media_MCMPGT_W): Likewise. (sh_media_MCMV, sh_media_MCNVS_LW, sh_media_MCNVS_WB): Likewise. (sh_media_MCNVS_WUB, sh_media_MEXTR1, sh_media_MEXTR2): Likewise. (sh_media_MEXTR3, sh_media_MEXTR4, sh_media_MEXTR5): Likewise. (sh_media_MEXTR6, sh_media_MEXTR7, sh_media_MMACFX_WL): Likewise. (sh_media_MMACNFX_WL, sh_media_MMUL_L, sh_media_MMUL_W): Likewise. (sh_media_MMULFX_L, sh_media_MMULFX_W, sh_media_MMULFXRP_W): Likewise. (sh_media_MMULHI_WL, sh_media_MMULLO_WL): Likewise. (sh_media_MMULSUM_WQ, sh_media_MPERM_W, sh_media_MSAD_UBQ): Likewise. (sh_media_MSHALDS_L, sh_media_MSHALDS_W, sh_media_MSHARD_L): Likewise. (sh_media_MSHARD_W, sh_media_MSHARDS_Q, sh_media_MSHFHI_B): Likewise. (sh_media_MSHFHI_L, sh_media_MSHFHI_W, sh_media_MSHFLO_B): Likewise. (sh_media_MSHFLO_L, sh_media_MSHFLO_W, sh_media_MSHLLD_L): Likewise. (sh_media_MSHLLD_W, sh_media_MSHLRD_L, sh_media_MSHLRD_W): Likewise. (sh_media_MSUB_L, sh_media_MSUB_W, sh_media_MSUBS_L): Likewise. (sh_media_MSUBS_UB, sh_media_MSUBS_W, sh_media_FABS_D): Likewise. (sh_media_FABS_S, sh_media_FCMPUN_D, sh_media_FCMPUN_S): Likewise. (sh_media_FIPR_S, sh_media_FMAC_S, sh_media_FSQRT_D): Likewise. (sh_media_FSQRT_S, sh_media_FTRV_S, sh_media_LDHI_L): Likewise. (sh_media_LDHI_Q, sh_media_LDLO_L, sh_media_LDLO_Q): Likewise. (sh_media_STHI_L, sh_media_STHI_Q, sh_media_STLO_L): Likewise. (sh_media_STLO_Q, sh_media_NSB, sh_media_BYTEREV): Likewise. (sh_media_PREFO, sh_media_ALLOCO): Likewise. (sh_media_FCOSA_S, sh_media_FSINA_S): New function. (sh_media_FMOV_DQ, sh_media_FMOV_LS): Use union assignment. (sh_media_FMOV_QD, sh_media_FMOV_SL): Likewise. (sh_media_CMVEQ): Use C code. Add attribute always_inline. (sh_media_CMVNE): Likewise. (sh_media_ADDZ_L): Use C code. (sh_media_unaligned_LD_L): Use intrinsics directly. (sh_media_unaligned_LD_Q, sh_media_unaligned_ST_L): Likewise. (sh_media_unaligned_ST_Q): Likewise. * config/sh/divtab.c: New file. 2005-04-06 Andrew Stubbs <andrew.stubbs@superh.com> J"orn Rennecke <joern.rennecke@superh.com> * config/sh/superh64.h, config/sh/superh.h: New files. * config/sh/newlib.h, config/sh/t-superh: Likewise. * config.gcc: Add support for sh*-superh-elf* and sh64-superh-linux*. gcc/testsuite: 2005-05-06 J"orn Rennecke <joern.rennecke@st.com> * gcc.dg/pr15784-3.c: Add -fno-finite-math-only option. * gcc.dg/20021029-1.c: For sh64*-*-*, add -mpt-fixed. From-SVN: r99460
2004-07-19sh.c (sh_use_dfa_interface): Remove.Paolo Bonzini1-0/+93
2004-07-19 Paolo Bonzini <bonzini@gnu.org> * config/sh/sh.c (sh_use_dfa_interface): Remove. (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to hook_int_void_1. * config/sh/sh.md: Extract pipeline descriptions into separate files. * config/sh/sh1.md: New file, extracted from sh.md. * config/sh/sh4.md: New file, extracted from sh.md. * config/sh/shmedia.md: New file, extracted from sh.md and rewritten using new-style pipeline description. From-SVN: r84910