mips.exp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Copyright (C) 2013-2017 Free Software Foundation, Inc.
  2. # This program is free software; you can redistribute it and/or modify
  3. # it under the terms of the GNU General Public License as published by
  4. # the Free Software Foundation; either version 3 of the License, or
  5. # (at your option) any later version.
  6. #
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. # GNU General Public License for more details.
  11. #
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program; if not, write to the Free Software
  14. # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  15. # MA 02110-1301, USA.
  16. if {![istarget mips*-*-*] || ![is_elf_format]} {
  17. return
  18. }
  19. if [is_remote host] {
  20. set tempfile [remote_download host tmpdir/bintest.o]
  21. set copyfile copy
  22. } else {
  23. set tempfile tmpdir/bintest.o
  24. set copyfile tmpdir/copy
  25. }
  26. set has_newabi [expr [istarget *-*-irix6*] \
  27. || [istarget mips*-*-linux*] \
  28. || [istarget mips*-sde-elf*] \
  29. || [istarget mips*-mti-elf*] \
  30. || [istarget mips*-img-elf*]]
  31. run_dump_test "mips-ase-1"
  32. run_dump_test "mips-ase-2"
  33. run_dump_test "mips-ase-3"
  34. run_dump_test "mips-xpa-virt-1"
  35. run_dump_test "mips-xpa-virt-2"
  36. run_dump_test "mips-xpa-virt-3"
  37. run_dump_test "mips-xpa-virt-4"
  38. run_dump_test "mixed-mips16"
  39. run_dump_test "mixed-micromips"
  40. run_dump_test "mixed-mips16-micromips"
  41. run_dump_test "mips16-undecoded"
  42. run_dump_test "mips16e2-undecoded"
  43. run_dump_test "mips16-pcrel"
  44. run_dump_test "mips16-extend-noinsn"
  45. run_dump_test "mips16-extend-insn"
  46. run_dump_test "mips16e2-extend-insn"
  47. run_dump_test "mips16-alias"
  48. run_dump_test "mips16-noalias"
  49. run_dump_test "mips-note-2"
  50. run_dump_test "mips-note-2r"
  51. if $has_newabi {
  52. run_dump_test "mips-note-2-n32"
  53. run_dump_test "mips-note-2-n64"
  54. run_dump_test "mips-note-2r-n32"
  55. run_dump_test "mips-note-2r-n64"
  56. }